SELECT SQL_CALC_FOUND_ROWS acc_posts.ID FROM acc_posts WHERE 1=1 AND acc_posts.ID IN (5242,6273,4516,6251,2617,5240,6205,2647,7251,8360) AND acc_posts.post_type IN ('post', 'page') AND ((acc_posts.post_status = 'publish')) ORDER BY acc_posts.post_date DESC LIMIT 0, 10