I'm trying to use mysql_fetch_object with a join query that uses aliases, and I can't figure out how to reference the fields with the alias. This doesn't work:
$r = mysql_query("select d.*, r.* from table1 d inner join table2 r on d.id = r.id");
$o = mysql_fetch_object($r);
print $o->r.field;
So.. how do I access the 'field' column if it exists on both tables?