$this->db->where_in('news.id', array(1,2,3,4,5)); //but this works $this->db->where_in('id', array(1,2,3,4,5)); //or $this->db->where('news.id', 1);