Prova:
codice:
SELECT * 
from acquisti a
left join clienti c
ON c.IDcliente = a.IDcliente
where a.IDprodotto = '$id1'
OR a.IDprodotto = '$id2'