Union-Syndicale-De-L'aviation-Civile-Cgt-(usac-cgt)---Section-Locale test Union-Syndicale-De-L'aviation-Civile-Cgt-(usac-cgt)---Section-Locale - test SELECT id FROM tags as a WHERE ( a.nom LIKE 'union-syndicale-de-l'aviation-civile-cgt-(usac-cgt)---section-locale' OR a.variations LIKE 'union-syndicale-de-l'aviation-civile-cgt-(usac-cgt)---section-locale' ) 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 'aviation-civile-cgt-(usac-cgt)---section-locale' OR a.variations LIKE 'union-s' at line 1