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 'ufficio-dei-dati%'' at line 1 Q=SELECT * FROM `wp576_posts` WHERE `post_name` LIKE '%dichiarazioni-sostitutive-e-acquisizione-d'ufficio-dei-dati%'