diff --git a/db/ActiveQuery.php b/db/ActiveQuery.php
index <HASH>..<HASH> 100644
--- a/db/ActiveQuery.php
+++ b/db/ActiveQuery.php
@@ -128,7 +128,7 @@ class ActiveQuery extends \yii\db\ActiveQuery
         $baseQuery = clone $this;
         return $this->counters = $baseQuery
             ->select($select)
-            ->from($modelClass::tableName())
+            ->from(['t' => $modelClass::tableName()])
             ->params($params)
             ->createCommand($modelClass::getDb())
             ->queryOne();
add t alias to count queries