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 ') AND p.post_status = 'publish'' at line 4] SELECT p.ID, p.post_title, pm.meta_value AS thumbnail_id, p.post_name FROM wp_posts p LEFT JOIN wp_postmeta pm ON p.ID = pm.post_id AND pm.meta_key = '_thumbnail_id' WHERE p.ID IN () AND p.post_status = 'publish'
