SELECT SQL_CALC_FOUND_ROWS acc_posts.ID FROM acc_posts WHERE 1=1 AND acc_posts.post_type IN ('post', 'page') AND ((acc_posts.post_status = 'publish')) ORDER BY acc_posts.post_date DESC LIMIT 0, 4