Guest User

Untitled

a guest
Aug 10th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. select distinct(tt.term_taxonomy_id) as categs from
  2. wp_term_relationships tr
  3. left outer join wp_term_taxonomy tt on tt.term_id = tr.term_taxonomy_id
  4. left outer join wp_terms on wp_terms.term_id = tr.term_taxonomy_id
  5. where object_id in('" . $contatos_cod . "') and tt.taxonomy = 'product_cat' and parent > 0
Add Comment
Please, Sign In to add comment