Consider two tables:
t1 t2
A B A C
------ -----
1 2 3 4
I run this code:
$q = mysql_query("SELECT * FROM t1 LEFT JOIN t2 ON 1=1");
print_r(mysql_fetch_all($q));
And get this result:
array(
A => 3
B => 2
C => 4
)
In all the cases I tried such thing, the value from the latest joined table goes to array (index A). The question is, can I count on that?
I know about aliases, but it would be much easier for me if I could know how Mysql+php behave in such case. Thank you.
1=1