diff --git a/src/Dibi/Fluent.php b/src/Dibi/Fluent.php index 0818de2a..c0cb970b 100644 --- a/src/Dibi/Fluent.php +++ b/src/Dibi/Fluent.php @@ -403,7 +403,7 @@ class Fluent implements IDataSource public function count() { return (int) $this->query([ - 'SELECT COUNT(*) FROM (%ex', $this->_export(), ') AS [data]', + 'SELECT COUNT(*) FROM (%ex', $this->_export(), ') [data]', ])->fetchSingle(); }