SELECT t1.filterOptionValueId FROM productFilterOptionValue as t1
LEFT JOIN productTag as t2 ON t2.productId = t1.productId
WHERE t2.tagId = %d GROUP BY t1.filterOptionValueId