diff --git a/src/Adapter/DbSelect.php b/src/Adapter/DbSelect.php index 3919de1..05c6633 100644 --- a/src/Adapter/DbSelect.php +++ b/src/Adapter/DbSelect.php @@ -115,7 +115,7 @@ public function count() foreach ($joins as $join) { $select->join($join['name'], $join['on'], array(), $join['type']); } - + $select->columns(array('c' => new Expression('COUNT(1)'))); $statement = $this->sql->prepareStatementForSqlObject($select);