just tell mysql that you want to do an on the fly rename using "as 'newname'"
SELECT usr.id as 'user_id', usg.id FROM users usr LEFT JOIN (user_groups usg) ON (usg.id=usr.group_id)
or using doctrine itself do it DQR style:
$resultArray = Doctrine_Query::create()
->select('usr.id, usg.id')
->from('users usr')
->leftJoin('usr.user_groups usg')
->setHydrationMode(Doctrine::HYDRATE_ARRAY)
->execute();
this should return an array where you can access both id's like that:
$resultArr['id']; //for accessing the usr.id
and eiter one of these both depending on the association you made between users and user_groups
$resultArr['user_groups']['id']; //for accessing the usg.id if it is one to one
$resultArr['user_groups'][0]['id']; //for accessing the usg.id if it is a one to many