Remove 'as' from SQL