Incorrect usage of UNION and ORDER BY without parenthesis

When use ORDER BY with UNION, give error Incorrect usage of UNION and ORDER BY. http://stackoverflow.com/a/6732697
Merge pull request #55 from misterx:patch-1

Incorrect usage of UNION and ORDER BY without parenthesis

Applied manually as the original PR was targeted to 3.3/master.

Fixes #55