PRODUCTS p
JOIN PRODUCT_TAGS pt ON p.ID = pt.PRODUCT_ID
JOIN TAGS t ON pt.TAG_ID = t.ID AND
t.ID IN (1, 23, 54)
I am assuming the column names. I think the column names are straight forward and you can use your column names easily. if you need more clarification let me know.