I have a table which contains a field with ID numbers. If the ID number is on it's own then it's simply shown as 1 or 43 etc
If there are multiple ID numbers then they are separated by a comma eg. 4,67,123
If I wanted to get the results where the ID contained a number what would the best way to go about this be apart from selecting all the results, turning the field into an array and using in_array.
I've tried WHERE userId LIKE '%?%' but if I am searching for 4 and the ID is say 41, it returns a match which isn't correct. Nor can I use ',?,' as single numbers have no commas.