Možná můžete zkusit použít aliasy na názvy tabulek? select * from table1 as T1 join table2 as t2 on (t1.key=t2.foreignkey)