I am using the following code to select from a MySQL database with a Code Igniter webapp:
$query = $this->db->get_where(\'mytable\',array(\'id\'=>10
$where = "name='Joe' AND status='boss' OR status='active'"; $this->db->where($where);
Though I am 3/4 of a month late, you still execute the following after your where clauses are defined... $this->db->get("tbl_name");
$this->db->get("tbl_name");