I have a Database that looks like this (unfortunately cannot be changed)
patients (table)
name | companies
-----------------------
Form 1 | [8,3]
Form 2 | [8]
I want to select every form with an assignment of 8 so I tried this:
SELECT * FROM patients WHERE FIND_IN_SET(patients, 8)
But it's not working, I tried another test in a sample database and if the [ and ] is removed it works just fine, unfortunately the [ and ] cannot be removed in the live database (this data is stringified from JSON)