diff --git a/SqlBuilder.php b/SqlBuilder.php index e4d2461..11fc402 100644 --- a/SqlBuilder.php +++ b/SqlBuilder.php @@ -235,7 +235,7 @@ class SqlBuilder extends Component */ public function count(): string { - return $this->_selectPrefix(['COUNT(*)']) . $this->make(); + return $this->makeSelect(['COUNT(*)']) . $this->make(); }