diff --git a/src/DB.php b/src/DB.php index fce05ae..7650c13 100644 --- a/src/DB.php +++ b/src/DB.php @@ -255,7 +255,7 @@ public function count(): ?int $statement .= " FROM " . $this->table; if ($this->join) { - $statement .= "JOIN " . $this->join; + $statement .= " " . $this->buildJoin(); } if ($this->where) {