SELECT DISTINCT, n.title, n.newsdate, n.category, (SELECT c.title FROM c2k_2010_category as c WHERE = n.category) as category_title FROM c2k_2010_tag_relations tr INNER JOIN c2k_2010_tags AS t ON = tr.tag_id INNER JOIN c2k_2010_video AS n ON = tr.video_id WHERE tr.video_id <> 0 AND t.tag_name IN ('Cavallo2000','Maria Lucia Galli','News','Equitazione','Ippica','Intervista','Gabriella Bosco','Gianfelice D'Agostino') AND n.publish = '1' AND n.newsdate <= CURDATE() AND <> 220 ORDER BY n.newsdate DESC LIMIT 3

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 'Agostino') AND n.publish = '1' AND n.newsdate <= CURDATE() ' at line 7