maybe you can use index to reference...
$t1.fieldname = $row[$i]
where $i is an integer corresponding to that column in your result
or
try this...
select username as username1 from user
SELECT username AS username1, username AS username2 FROM user
this rename my username column into username1 and 2