QueryBuilder - replace deprecated getAlias() by getAliases()[0]

Updated. What's the reason for deprecation anyway?