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
Active record method or_where is to be used:
or_where
$this->db->select("*") ->from("table_name") ->where("first", $first) ->or_where("second", $second);