I searched for questions like this.. But I could not find answer to fetch data from mysql table.
I have mysql table like below :
| id   |    division  | branch
|  1   |    Mumbai    | Thane
|  2   |    Mumbai    | Kalyan
|  3   |    Pune      | Nagar
|  4   |    Pune      | Sangamner
|  5   |    Solapur   | Jat
|  6   |    Solapur   | Satara
Now I have a comma separated string as follows
$string = Mumbai,Solapur
I want to fetch rows where division column contains Mumbai and Solapur
I tried FIND_IN_SET() but it doesn't work.
e.g.
$query = "select * from table where FIND_IN_SET($string, division);
