intendi dire che ti serve qualkosa del genere

select * from prodotto as p, settore as s relazione_prodotto_settore as r
where p.id=r.id_prodotto and s.id=r.id_setto and s.id="valore che cerchi"

altrimenti non ho capito che ti serve