Error(select tit_articles.ID as id, tit_articles.TITLE as title, tit_articles.TITLE_SEO as titleSeo, tit_articles.SUMARY as sumary, tit_articles.DATE_START as dateA, tit_articles.THUMBNAIL as image from tit_articles where tit_articles.IDSECTION = 0 and tit_articles.STATUS = 1 and tit_articles.TRASH = 0 and tit_articles.DATE_START <= NOW() and (tit_articles.DATE_END = '0000-00-00 00:00:00' or tit_articles.DATE_END >= NOW()) order by tit_articles.DATE_START desc limit 0, ): 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 '' at line 14