Add appropriate 'AS' into SQL column aliases.

So that it will work with PostgreSQL