SELECT `ID` FROM `wp_posts` AS `posts` LEFT JOIN `wp_yoast_seo_meta` AS `yoast_meta` ON `yoast_meta` . `object_id` = `posts` . `ID` WHERE `posts` . `post_status` = ? AND `posts` . `post_type` IN (...) AND `yoast_meta` . `internal_link_count` IS NULL LIMIT ? 