I am having 2 columns both have values with comma keyword_whomtoteach and area_tutor when i am passing multiple values to $area and $keyword_whomtoteach i am not getting correct output i am using this query
$toteach=1,5 $area=1,5
$search = "keyword_whomtoteach IN (".$toteach.")";
$where = "area_tutor IN (".$area.")";
$this->db->where($search);
$this->db->or_where($where);
$query=$this->db->get();
return $result = $query->result_array();
here i am getting correct result but the problem is i need something like this if
id keyword_whomtoteach area_tutor
1 1,2,3,4,5 1,2
2 2,3,5 2,3
3 5,6,7 1,4
4 1,5,6 5,6
I want something like when i pass $toteach=1 and $area=1,5 at this point of time i should get both id 1 and 4 as both have keyword_whometoteach=1,5