Bug #20673 | LEFT JOIN unknown column in ON clause | ||
---|---|---|---|
Submitted: | 23 Jun 2006 22:57 | Modified: | 24 Jun 2006 2:27 |
Reporter: | Radu Raduica | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S5 (Performance) |
Version: | 5.x | OS: | Linux (Linux/Windows) |
Assigned to: | CPU Architecture: | Any |
[23 Jun 2006 22:57]
Radu Raduica
[24 Jun 2006 2:27]
MySQL Verification Team
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Pleas read: http://dev.mysql.com/doc/refman/5.0/en/join.html mysql> SELECT a.iIdRight, c.iIdUser, f.iIdForm, a.iRight, f.cFormTitle -> FROM tforms AS f, tusers AS c -> LEFT JOIN trights AS a ON a.iIdUser = c.iIdUser AND f.iIdForm = -> a.iIdForm -> WHERE f.iFormInRights = 1 AND c.iIdUser = 1; ERROR 1054 (42S22): Unknown column 'f.iIdForm' in 'on clause' mysql> mysql> SELECT a.iIdRight, c.iIdUser, f.iIdForm, a.iRight, f.cFormTitle -> FROM (tforms AS f, tusers AS c) -> LEFT JOIN trights AS a ON a.iIdUser = c.iIdUser AND f.iIdForm = -> a.iIdForm -> WHERE f.iFormInRights = 1 AND c.iIdUser = 1; Empty set (0.00 sec)