join on other tables only
fixed bug where joins were performed on selected table