The best solution would be to change your table structure. If you have a many to many relationship, that should be held in another table rather than in a list stored as a string in a database field.
...assuming you can't change the table structure, would this work(?):
...try using the
REPLACE function to change the '#' separated values to comma separated values and use an 'IN' clause to see if the value is in the list? Unfortunately, I can't try this out, but I feel like something like that might work? Or maybe the MAKE_SET function? There has to be something in the
string functions, right?
(sorry if I'm distracted by the Daily Show

)