Home › Forums › Back End › mySQL: Query two tables for multiple results from array in first table? › Re: mySQL: Query two tables for multiple results from array in first table?
March 19, 2013 at 3:07 am
#128727
Participant
So I was able to get it to work by replacing **WHERE IN** with **FIND_IN_SET**:
“SELECT e.*, (SELECT GROUP_CONCAT(DISTINCT o.title SEPARATOR ‘,’) FROM #__raceschedule_options AS o WHERE FIND_IN_SET(o.id, e.options)) optiontitles FROM `#__raceschedule_events` AS e”