Coloque a sua pergunta em uma clausula where
Assim:
Select d.ID, a.taxonomy, b.name, d.post_title, d.post_type
from wp_term_taxonomy a
inner join wp_terms b on a.term_id = b.term_id
inner join wp_term_relationships c on a.term_taxonomy_id = c.term_taxonomy_id
inner join wp_post d on c.object_id = d.id
where b.name = "Resina"
union
Select d.ID, a.taxonomy, b.name, d.post_title, d.post_type
from wp_term_taxonomy a
inner join wp_terms b on a.term_id = b.term_id
inner join wp_term_relationships c on a.term_taxonomy_id = c.term_taxonomy_id
inner join wp_post d on c.object_id = d.id
where b.name = "featured"
name = 'Resina' AND name = 'featured'
basicamente vc já tem a solução, coloque isso numwhere
na sua query