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