I\'m quite a begginer and I have two tables: \"product\" and \"product attributes\".
Here\'s some imaginary data (the actual stuff involves more tables )
Pr
Assuming your product table is called Product and the ID column in that table is just called Id:
SELECT * from Product p where p.Id IN (Select id_product from ProductAttributes where id_attribute in (21, 23, 24))