diff --git a/sql.php b/sql.php index d587c4d34..ca84fbfb8 100644 --- a/sql.php +++ b/sql.php @@ -473,6 +473,7 @@ else { } else { $count_what = '*'; } + // this one does not apply to VIEWs $count_query = 'SELECT COUNT(' . $count_what . ') AS count'; }