1054 - Unknown column 'a.c' in 'on clause'
This can happen if you're doing something like:
SELECT * FROM
a, b
LEFT JOIN c ON a.d = c.e;
...which looks, on the surface of it, fine. But it's invalid SQL; bugs in earlier versions of MySQL (4.x) caused it to be parsed as above and appear to work, but the SQL standard says it should be read as:
SELECT * FROM
a,
b LEFT JOIN c ON a.d = c.e;
...and you can see that the LEFT JOIN no longer makes any sense. So, to fix your SQL, you need to either move the JOIN statement so it's between the two tables it's joining:
SELECT * FROM
a LEFT JOIN c ON a.d = c.e,
b;
...or explicitly group like ((a,b),c) instead of (a,(b,c)):
SELECT * FROM
(a,
b) LEFT JOIN c ON a.d = c.e;
- Home
-
Store
- Browse All
- Hippo Web Hosting Linux (New)
- Hippo WordPress Hosting (New)
- Hippo SSL Certificates (New)
- Hippo VPS Hosting
- Virtual Servers Windows
- Hippo Reseller Hosting
- SSL Certificates
- cPanel Web Hosting Linux
- Business cPanel Hosting
- WordPress Hosting
- Hippo Website Design
- Site Builder
- Digital Marketing
- Site Builder
- Register a New Domain
- Transfer Domains to Us
- Announcements
- Knowledgebase
- Network Status
- Affiliates
- Contact Us
-
More