SELECT SQL_CALC_FOUND_ROWS `wp3_posts` . `ID` FROM `wp3_posts` WHERE ? = ? AND `wp3_posts` . `post_type` IN (...) AND ( `wp3_posts` . `post_status` = ? ) ORDER BY `wp3_posts` . `post_date` DESC LIMIT ?, ... 