Prova così
codice:select tab1.prodotto from tab1 inner join tab3 as due on tab1.id = due.prodid inner join tab3 as tre on due.prodid = tre.prodid where due.ingid = 1 and tre.ingid = 2
Prova così
codice:select tab1.prodotto from tab1 inner join tab3 as due on tab1.id = due.prodid inner join tab3 as tre on due.prodid = tre.prodid where due.ingid = 1 and tre.ingid = 2