MYSQL ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Query: SELECT *, CONCAT(date_date, ' ', date_time) AS datetime,date_format(date_date, '%M %e, %Y ') AS date_show_date , time_format(date_time, '%l:%i %p') AS date_time_show,date_format(last_modified, '%M %e, %Y %l:%i %p') AS last_modified, date_format(date_expire, '%M %e, %Y ') AS date_expire_show FROM ms_calendar LEFT JOIN ms_blog_cats_connect ON ms_calendar.date_id=ms_blog_cats_connect.con_prod WHERE date_public!='2' AND date_public!='4' AND date_type='news' AND page_under='0' AND CONCAT(date_date, ' ', date_time)<='2019-08-21 10:55:07' AND private<='1' AND (date_expire='0000-00-00' OR date_expire>='2019-08-21' ) GROUP BY date_id ORDER BY date_date DESC, date_time DESC LIMIT 0,