SQL nonsence - SELECT * FROM `pac_tagged` AS ta, `pac_tags` AS t WHERE ta.item_id = AND ta.item_type = 2 AND ta.tag_id = t.tag_id