SELECT SQL_CALC_FOUND_ROWS nap_posts.* FROM nap_posts LEFT JOIN nap_term_relationships ON (nap_posts.ID = nap_term_relationships.object_id) WHERE 1=1 AND ( nap_term_relationships.term_taxonomy_id IN (10109) ) AND ((nap_posts.post_type = 'post' AND (nap_posts.post_status = 'publish'))) GROUP BY nap_posts.ID ORDER BY nap_posts.post_date DESC LIMIT 0, 10 debrecen nap_term_relationships nap_term_relationships_debrecen SELECT SQL_CALC_FOUND_ROWS nap_posts.* FROM nap_posts LEFT JOIN nap_term_relationships_debrecen ON (nap_posts.ID = nap_term_relationships_debrecen.object_id) WHERE 1=1 AND ( nap_term_relationships_debrecen.term_taxonomy_id IN (10109) ) AND ((nap_posts.post_type = 'post' AND (nap_posts.post_status = 'publish'))) GROUP BY nap_posts.ID ORDER BY nap_posts.post_date DESC LIMIT 0, 10