Ver originalSELECT id_producto, COUNT(DISTINCT id_tag) valor FROM `relacion_tags` WHERE ` id_tag` IN ('5', '12') GROUP BY id_producto HAVING valor = 2