[eluser]inari[/eluser]
This is my problem:
$q = $this->db->join('partners','partners.client = clients.id','left');
$q = $this->db->get('clients')->result();
Both tables have at least one field that has exact name. In this case there are fields called 'name', 'address', etc...
When I get output, fields with same name are overwritten.
Is there some way to use field prefix with codeigniter? So if there are two fields with same name that I can get one field like 'test_name', and other one like 'clients_name'
If not, is there some auto-aliases with mysql or something like that?
Only way I can use same field names now is that I white sql manually an use 'AS' alias.
But I can't use it with Active record.