I can't fix this, I have to work with what I've got. The string comes from elsewhere. I can match the records when when there's only one value in the field
WHERE myField = ".$myValue."
I also could've done if I had to match a value against a string
WHERE myField IN (".$myString.")
...I think I need more caffeine...