WordPress database 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 'DESC, wp_xcoh_posts.ID ) DESC
LIMIT 0, 1' at line 5]SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_xcoh_posts.ID
FROM wp_xcoh_posts LEFT JOIN wp_xcoh_ftcalendar_events ON wp_xcoh_ftcalendar_events.post_parent = wp_xcoh_posts.ID
WHERE 1=1 AND wp_xcoh_posts.post_parent = 5 AND wp_xcoh_posts.post_type = 'revision' AND ((wp_xcoh_posts.post_status = 'inherit'))
ORDER BY COALESCE( wp_xcoh_ftcalendar_events.end_datetime,wp_xcoh_ftcalendar_events.start_datetime,wp_xcoh_posts.post_date DESC, wp_xcoh_posts.ID ) DESC
LIMIT 0, 1
<\/p>