SELECT `l` . `ID` , `post_title` , `post_content` , `post_name` , `post_parent` , `post_author` , `post_status` , `post_modified_gmt` , `post_date` , `post_date_gmt` FROM ( SELECT `wp_posts` . `ID` FROM `wp_posts` WHERE `wp_posts` . `post_status` IN (?) AND `wp_posts` . `post_type` = ? AND `wp_posts` . `post_password` = ? AND `wp_posts` . `post_date` != ? ORDER BY `wp_posts` . `post_modified` ASC LIMIT ? OFFSET ? ) `o` JOIN `wp_posts` `l` ON `l` . `ID` = `o` . `ID` 