This is not how IN works. The IN clause accepts a list of literal values ββfor comparison or a set of strings from a subquery. What do you want to use LIKE for:
SELECT clients_id FROM clients WHERE clients_groups LIKE '%34'
But it will correspond to 341, etc. Why do you have a list of values? The normal form is usually frown on this for precisely this reason.
source share