public function findLastInAppMessage($app_id, $device_id) { $subscription = new Topic_Model_Subscription(); $allowed_categories = $subscription->findAllowedCategories($device_id); $row = $this->getTable()->findLastInAppMessage($app_id, $device_id, $allowed_categories); $this->_prepareDatas($row); return $this; }