diff --git a/SqlBuilder.php b/SqlBuilder.php index 5992fed..57471da 100644 --- a/SqlBuilder.php +++ b/SqlBuilder.php @@ -221,7 +221,7 @@ class SqlBuilder extends Component */ public function all(): string { - return $this->makeSelect($this->query->from) . ' ' . $this->make() . ' ' . $this->makeLimit(); + return $this->makeSelect($this->query->select) . ' ' . $this->make() . ' ' . $this->makeLimit(); }