I have a table in my DB that looks like so:
member_id name mgroup_others member_group_id
1 Name1 2,3,10 1
2
Since mgroup_others
is a varchar
column what if you simply use LIKE
operator other than FIND_IN_SET()
like
select * from table1
where mgroup_others like '%10'
You can as well use FIND_IN_SET()
like below
select * from table1
where find_in_set(10,mgroup_others)
See a demo fiddle here http://sqlfiddle.com/#!2/034711/2