Quick question, just wondering if anyone can see where the syntax error is in this LEFT JOIN?
SELECT
...
FROM table1 AS t1, table2 AS t2, table3 AS s3
table4 AS t4, table5 AS t5 LEFT JOIN table6 AS t6 ON t5.id = t6.t5_id
AND t6.etc
ORDER BY ...
I can only presume it doesn’t like the t1,t2,t3,t4 preceeding the LEFT JOIN ont5 & t6
Error description
You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near 'table4 AS t4, table5 AS t5 LEFT JOIN table6 AS t6 ON ON t5.id = t6' at line 26*
You don’t have a comma “,” behind
table3 as s3