//////////////filter categories prom taxonomy//////////////
(SELECT  ta.term_id, tm.name, tm.slug
FROM `iatm_orient_2_term_taxonomy` ta
LEFT JOIN iatm_orient_2_terms tm ON ta.`term_id` = tm.term_id
WHERE ta.taxonomy = 'category')

UNION

(SELECT  ta.term_id, tm.name, tm.slug
FROM `iatm_orient_term_taxonomy` ta
LEFT JOIN iatm_orient_terms tm ON ta.`term_id` = tm.term_id
WHERE ta.taxonomy = 'category')
