O'connor-James-Robert test O'connor-James-Robert - test SELECT id FROM tags as a WHERE ( a.nom LIKE 'o'connor-james-robert' OR a.variations LIKE 'o'connor-james-robert' ) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'connor-james-robert' OR a.variations LIKE 'o'connor-james-robert' )' at line 1