una querry del tipo

select * from prodotti where nome IN (select ingredienti from ricette where id_ricetta=x)

potrebbe andare?

ti tira fuori i prodotti che sono tra gli ingredienti