Incorrect usage of UNION and ORDER BY
A common problem when using the UNION command in MySQL is when you want to order the sets of data differently. If you do it incorrectly, you will see the error message:
Incorrect usage of UNION and ORDER BY
To solve the problem, wrap each individual SELECT statement in parenthesis as follows:
(SELECT col1,col2,col3 FROM table1)
UNION
(SELECT cola,colb,colc FROM table2)
Nice and simple, all you have to do is remember the brackets!

Thanks…I was having the same problem.
[...] Die L?sung hast du ja nun schon selbst herausgefunden - Google spuckt dazu zB das hier aus: L?sungsvorschlag @ DevChunks.com [...]
Thanks, i was looking for this