SELECT `tr` . `object_id` FROM `wp_term_relationships` AS `tr` INNER JOIN `wp_term_taxonomy` AS `tt` ON `tr` . `term_taxonomy_id` = `tt` . `term_taxonomy_id` WHERE `tt` . `taxonomy` IN (?) AND `tt` . `term_id` IN (?) ORDER BY `tr` . `object_id` ASC 