I have a query where i join a couple of tables. 2 tables contain the same fieldname, so i want to select 1 table AS another name. I know how to do that, but it seems that when i query a field AS another name, it selects only that field.
My question is: how can i select all fields in the table, and a particular field AS another name?
This is how i have my code at this moment:
$select->from('one');
$select->join('two', 'one.item_id = two.id', array('item_name' => 'name'));
$select->join('three', 'one.item_id = three.item_id');
So i want to select all from two, and name the field name AS item_name.
Thanks in advance!
select *", I assume.