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 'FROM mg_posts
WHERE 1=1 AND ((mg_posts.post_type = 'post' AND (mg_pos...' at line 2]SELECT SQL_CALC_FOUND_ROWS all
FROM mg_posts
WHERE 1=1 AND ((mg_posts.post_type = 'post' AND (mg_posts.post_status = 'publish')))
ORDER BY mg_posts.post_date DESC
LIMIT 0, 10