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 '' at line 1]
SELECT DISTINCT * FROM wp_posts WHERE 1=1 AND post_date_gmt <= '2017-10-22 06:17:59' AND (post_status = 'publish') AND post_status != 'attachment' GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 0,