ORDER BY must be after WHERE (or GROUP BY or HAVING) of the last statement. You effectively have multiple statements thanks to the unions.
In reply to Re^5: Sort in multilevel hash
by Anonymous Monk
in thread Sort in multilevel hash
by gueriniere
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |