Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. SELECT DISTINCT(t.id)
  2. FROM tags t
  3. INNER JOIN items_tags it ON it.tag_id = t.id
  4. INNER JOIN items i ON it.item_id = i.id
  5. WHERE i.type = 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement