SELECT g.articolo_id, g.titolo, a.testo, FROM articoli a LEFT JOIN articoli_giornali g ON a.id = g.articolo_id WHERE a.attivo AND g.giornale_id in (17,2,5,10,4,3,18,1,19,20,21,13,22,23,26) AND a.data_pubblicazione = '2010-03-19' AND g.approvato AND a.ihomeYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM articoli a LEFT JOIN articoli_giornali g ON a.id = g.articolo_id WHERE a.' at line 2