I have values in array as below.
$findList = array(1,2,3,6);
And I have one table as below in database.
id sets
1 1
2 1,2
3 1,2,4
4 1,2,6
5 3,8,9
6 7,8,9
7 5,8,9
Now, I would like to find all rows which has any of value of array findList.
So result set should have first five rows.
I can do this by explode array and write OR query with each element. Is there any other way?