Here is my query:
SELECT * FROM events WHERE (audience like '%Internal%20Medicine%') and ('$date' < end_date) order by end_date
In the database the audience column looks like this "Internal Medicine, Neurology, Radiology".
I need the query to match the exact string in between the commas.
%,X,X,%,%,X,%andX, whereXis the search string. You could also do a regex search, but that's not as efficient.