So I have two tables one is questions it has a description field that I am trying to match with the topics table search_keyword field.
For example the question table description field has this:
q.description
-------------
Have you ever traveled to China?
And the search_keyword field on topics table has this:
t.search_keywords
-------------
travel, traveled, traveling, traveler, travel agency, jet set
So basically I am trying to narrow down a result set for questions based on the description having any of the keywords.
Here is my query so far, I am given the topic URL which is a field that narrows down things a bit, but then have to narrow down even more with matching the description to the search_keywords.
SELECT * FROM question q
LEFT JOIN topic t ON t.category_id = q.category_id
WHERE t.url = 'travel' AND
FIND_IN_SET(q.description, t.search_keywords)
NOTE: I can't change the database unfortunately
Any help would be appreciated!