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, '%d.%m.%Y ') AS date_show_date , time_format(date_time, '%h:%i %p') AS date_time_show,date_format(last_modified, '%d.%m.%Y %h:%i %p') AS last_modified, date_format(date_expire, '%d.%m.%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)<='2018-06-22 02:13:21' AND private<='1' AND (date_expire='0000-00-00' OR date_expire>='2018-06-22' ) GROUP BY date_id ORDER BY date_date DESC, date_time DESC LIMIT 0,