F
A
C
E
B
O
O
K
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, '%h:%i %p') AS date_time_show,date_format(last_modified, '%M %e, %Y %h:%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_type='news' AND page_under='0' AND CONCAT(date_date, ' ', date_time)<='2017-10-23 13:44:55' AND private<='1' AND (date_expire='0000-00-00' OR date_expire>='2017-10-23' ) GROUP BY date_id ORDER BY date_date DESC, date_time DESC LIMIT 0,