Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT DISTINCT(t.id)
- FROM tags t
- INNER JOIN items_tags it ON it.tag_id = t.id
- INNER JOIN items i ON it.item_id = i.id
- WHERE i.type = 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement