Fixed ambiguous column in order clause