We have a Union Query. Here's a basic (similar) example:
SELECT a.Name, b.Info FROM a LEFT JOIN b ON (a.ID = b.ID) WHERE a.Name LIKE "a%" UNION SELECT a.Name, b.Info FROM a LEFT JOIN b ON (a.ID = b.ID) WHERE a.Name LIKE "b%" ORDER BY a.Name, b.Info;
I am receiving an error that says "Unknown column 'b.Info' in 'order clause'".
When I remove the "b.Info" from the end of the ORDER BY clause, it works.
Ideas ?