I have a db of personnel which every person can have one or multiple countries. The countries can be added from a multiple choice drop down to db. A person could be like this
name country
john USA, UK, Poland
joe USA
Jack Germany
user can filter people by changing the value of <%= country %> I am trying to filter people based on user's choice. I am using this query
SELECT *
FROM `personnel`
WHERE <%= country %> LIKE `country`
ORDER BY `industry` ASC, `name` ASC
the problem is this select filters only rows(people) with single country, and it doesn't show people who has more that one country. I tried to use = instead of LIKE but that one didn't work also