diff options
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index ba376917b..de1093835 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -1409,7 +1409,7 @@ if (!$count) { $query = "SELECT * from {$CONFIG->dbprefix}entities where "; } else { - $query = "select count(guid) as total from {$CONFIG->dbprefix}entities where "; + $query = "SELECT count(guid) as total from {$CONFIG->dbprefix}entities where "; } foreach ($where as $w) $query .= " $w and "; |