fix bug recognizing aliases as valid in aggregate query ORDER BY
jira: close MB-9106