SQLSELECT t1.name AS t1_name, t2.name AS t2_name ...
select t1.name as name_t1, t2.name as name_t2 from t1 left join t2 on t1.t2_id = t2.id;