public function mostRecent($count) { $page = new Page(); $options = array('where' => "category_id = ? AND is_active=1", 'data' => array($this->id), 'orderBy' => "post_date DESC"); if ($count > 0) { $options['limit'] = $count; } return $page->loadMultiple($options); }