SELECT `P` . `ID` FROM `wp_posts` AS `P` WHERE `P` . `post_type` IN (...) AND `P` . `post_status` NOT IN (?) AND `P` . `ID` NOT IN ( SELECT `I` . `object_id` FROM `wp_yoast_indexable` AS `I` WHERE `I` . `object_type` = ? AND `I` . `version` = ? ) LIMIT ? 