diff --git a/dibi/libs/DibiFluent.php b/dibi/libs/DibiFluent.php index e55f5c38..306dadf0 100644 --- a/dibi/libs/DibiFluent.php +++ b/dibi/libs/DibiFluent.php @@ -402,7 +402,7 @@ class DibiFluent extends DibiObject implements IDataSource public function count() { return (int) $this->query(array( - 'SELECT COUNT(*) FROM (%ex', $this->_export(), ') AS [data]', + 'SELECT COUNT(*) FROM (%ex', $this->_export(), ') [data]', ))->fetchSingle(); }