Syntax error for Queries containing certain clauses

[CR# 467548] Queries containing 'order by' or 'group by' clauses may run into a syntax error if the column name follows the 'order by' or 'group by' is 'range', 'list', 'hash', or 'roundrobin'.

Workaround: Add '()' around the column name following 'order by' or ' group by'.