first, here is how the mysql data looks like:
"group" column in "table_a"
---------------
user1 = 123,456,789
user2 = 789,897,12
user3 = 789
user4 = 4789,123,456
---------------
I am trying to return all users who have "789" in their group column field.
I have:
SELECT * from table_a WHERE group LIKE %789%
this query returns user1,user2,user3,user4 (user4 should not be part of the results)
and:
SELECT * from table_a WHERE group LIKE %789%
only returns user3
How can I return only user1, user2 and user3?