select adi from tablo1 where adi = '$adi'
union all
select adi from tablo2 where adi2 ='$adi'