Ниже запрос работает с одной таксономией
SELECT *
FROM bb_posts AS p
LEFT JOIN bb_term_relationships AS r ON (p.ID = r.object_id)
INNER JOIN bb_term_taxonomy AS x ON (r.term_taxonomy_id = x.term_taxonomy_id)
INNER JOIN bb_terms AS t ON (r.term_taxonomy_id = t.term_id)
WHERE p.post_type IN ('post', 'profile')
AND p.post_status = 'publish'
AND x.taxonomy = 'profile-category'
AND t.term_id = '577'
AND x.taxonomy = 'county'
AND t.term_id = '804'
AND x.taxonomy = 'Sector'
AND t.term_id = '830'
ORDER BY p.post_date DESC
Как получить данные постов из 3 таксономий?