Fix bug in OrderByScope when it handles select * order by column query.