SELECT `wp_posts` . `ID` FROM `wp_posts` WHERE ? = ? AND `wp_posts` . `ID` IN (...) AND `wp_posts` . `post_type` = ? AND ( ( `wp_posts` . `post_status` = ? ) ) ORDER BY `FIELD` ( `wp_posts` . `ID` , ?, ... ) LIMIT ?, ... 