How to apply several selects for several joins? I want to join columns from several tables. For one table join works fine