The MySQL query below uses PHP to pull in the $sector, which is a single digit, and the $subsector_text, which is a comma separated string. The $subsector_text could be a
The solution was to refactor the app. It took a couple days, but the offending code is gone and a new subsector table was created. Thanks everyone.