SELECT 2_news.*, 1_news.titolo AS titolo_cat FROM 1_news INNER JOIN 2_news ON (1_news.ID_COUNT=2_news.ID_LIV_SUP) WHERE 1_news.CESTINO='No' AND 1_news.ID_LINGUA='1' AND 1_news.attivo='Si' AND 2_news.CESTINO='No' AND 2_news.ID_LINGUA='1' AND 2_news.attivo='Si' AND 2_news.id_divisione = '1' AND 1_news.ID_URL='eventi' AND ((2_news.data_inizio<='2016-12-02' OR 2_news.data_inizio='0000-00-00') AND (2_news.data_fine>='2016-12-02' OR 2_news.data_fine='0000-00-00')) GROUP BY 2_news.ID_COUNT ORDER BY 2_news.data DESC LIMIT -5,5
In run_query A
DB Error: syntax error