get single field based on where condtion in codeigniter code example Example: get single column in codeigniter $this->db->select('name');