Error(select count(*) as Total from geo_articles
left join geo_blog_post_tags on geo_blog_post_tags.ID_POST = geo_articles.ID
where geo_articles.TYPE = 'blog'
and geo_blog_post_tags.ID_TAG =
and geo_articles.STATUS = 1
and geo_articles.TRASH = 0
and (geo_articles.DATE_START <= NOW() or (geo_articles.DATE_START <= NOW() and geo_articles.DATE_END <> geo_articles.DATE_START and geo_articles.DATE_END >= NOW()))): 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 'and geo_articles.STATUS = 1
and geo_articles.TRASH = 0
and (geo_a...' at line 5