'1', 'displayorder' => '0', 'fieldid' => '', 'title' => '', 'uniacid' => '', ); public function getAllFields() { return $this->query->from('mc_member_fields', 'a') ->leftjoin('profile_fields', 'b') ->on('a.fieldid', 'b.id') ->orderby('displayorder DESC') ->getall('field'); } public function selectFields($select) { return $this->query->select($select); } public function searchWithUniacid($uniacid) { return $this->query->where('uniacid', $uniacid); } public function searchWithAvailable($available) { return $this->query->where('available', $available); } }