SQL query with multiple conditions in codeigniter
06:05 31 Jan 2017

I have been trying to fetch records based on 'category' (should be Where clause) with few other constraints as below. Please guide me on where to insert the where clause in my code below as where category=$category.

$this->db->select('*');
$this->db->from('proj_item_details','proj_item_images');
$this->db->join('proj_item_images', 'proj_item_images.proj_id=proj_item_details.proj_id');
$this->db->like('proj_item_title',$params['search']['keywords']);
$this->db->order_by('proj_item_title',$params['search']['sortBy']);
$this->db->limit($params['limit'],$params['start']);
php mysql codeigniter