MySQL search in comma list [duplicate]

You need the FIND_IN_SET function:

SELECT ... WHERE FIND_IN_SET('1', field)

Leave a Comment