Error getYearList: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP BY CONCAT(YEAR(date)) ORDER BY date DESC, news_id DESC' at line 4SELECT count(news_id) as YearArchives, YEAR(date) as dateArchives FROM tbl_news WHERE visible=1 AND type= GROUP BY CONCAT(YEAR(date)) ORDER BY date DESC, news_id DESC