This is the culprit in 85% of cases. In SQL, string values must be wrapped in quotes (either single ' or double " , depending on the SQL mode).