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
You can use or_where() for that - example from the CI docs:
$this->db->where('name !=', $name); $this->db->or_where('id >', $id); // Produces: WHERE name != 'Joe' OR id > 50