SELECT SQL_CALC_FOUND_ROWS acc_posts.ID FROM acc_posts LEFT JOIN acc_term_relationships ON (acc_posts.ID = acc_term_relationships.object_id) WHERE 1=1 AND ( acc_term_relationships.term_taxonomy_id IN (2) ) AND acc_posts.post_type IN ('post', 'page') AND ((acc_posts.post_status = 'publish')) GROUP BY acc_posts.ID ORDER BY acc_posts.post_date DESC LIMIT 110, 10