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 'oiv-di-validazione-della-relazione-sulla-performance%'' at line 1 Q=SELECT * FROM `wp576_posts` WHERE `post_name` LIKE '%documento-dell'oiv-di-validazione-della-relazione-sulla-performance%'