I have this code in model that returns data
$this->db->select(\'title, content, date\'); $where = \"name=\'Joe\' AND status=\'boss\'\"; $this->db-
As per document in CodeIgniter Where, you have to mention here with OR or AND "id=$id, name='Joe'.
OR
AND
"id=$id, name='Joe'
$where = "id=$id AND/OR name='Joe' AND status='boss'"; ^^^^ Chose one
Or use array