WordPress database error: [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 'ASC, wp_posts.menu_order ) ASC' at line 5]SELECT DISTINCT wp_posts.*
FROM wp_posts LEFT JOIN wp_ftcalendar_events ON wp_ftcalendar_events.post_parent = wp_posts.ID
WHERE 1=1 AND wp_posts.post_type = 'page' AND ((wp_posts.post_status = 'publish'))
ORDER BY COALESCE( wp_ftcalendar_events.r_end_datetime,wp_ftcalendar_events.end_datetime,wp_ftcalendar_events.start_datetime,wp_posts.post_parent ASC, wp_posts.menu_order ) ASC