select atablosu.*, btablosu.* from atablosu inner join btablosu on atablosu.aid=btablosu.bid
bunda bir hata yok senin yazdığın kod nedir?