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 Name2 4,5,10 1
3 Name3 6,7,10 1
4 Name4 8,9 1
I need to create a SELECT statement that selects all members WHERE a specified integer is in the 'mgroup_others' comma demented list. So for example, I would write a SQL statement that would select all members where 'mgroup_others' contains '10' and it would return member 1, 2 and 3 but not 4 since 10 is not in that field. Any help would be greatly appreciated! Thanks. I am writing this in PHP as well.