Hi
I think this is the know bug in Mysql 5. If you want to work around this, is to specify t1 join t2 instead of using the ","(comma). the following is the example of this. It worked for me and hopefully will work for you.
Code:
create table t1 (a int);
create table t2 (b int);
create table t3 (c int);
select * from t1, t2 join t3 on t1.a=t3.c;
ERROR 1054 (42S22): Unknown column 't1.a' in 'on clause'
select * from t1, t2 left outer join t3 on t1.a=t3.c;
ERROR 1054 (42S22): Unknown column 't1.a' in 'on clause'
select * from t1 join t2 join t3 on t1.a=t3.c;
//.. this works ..
select * from t1 join t2 left outer join t3 on t1.a=t3.c;
//.. this works ..
Bookmarks