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

yes (plus the ``isset`` check to be sure the index 0 exists)