diff --git a/SqlBuilder.php b/SqlBuilder.php index 6c11bca..bb3fae2 100644 --- a/SqlBuilder.php +++ b/SqlBuilder.php @@ -235,7 +235,7 @@ class SqlBuilder extends Component */ public function count(): string { - return $this->makeSelect() . $this->make(); + return $this->makeSelect($this->query->select) . $this->make(); }