MySQL may have functions that allow you to find a value in a
list. If not you may need to use a series LIKE statements. Either
way the query will almost certainly be slower than if your data
were properly normalized.
Field = '2' OR Field LIKE '2,%' OR Field LIKE '%,2,%' OR
Field LIKE '%,2'
Storing data in that manner is generally considered a bad
design. One of the reasons is what you've discovered: its difficult
to query. I would strongly recommend that you normalize your data.
User Table: UserID, UserName, ...
Group Table: GroupID, GroupName, ...
UserGroup Table:
UserID | GroupID
1 | 20
1 | 2
1 | 4
1 | 7
3 | 20
3 | 89
3 | 22
5 | 122
Your query would be simply
SELECT UserID
FROM UserGroup
WHERE GroupID = 2