diff options
| author | 2016-08-07 00:54:49 +0200 | |
|---|---|---|
| committer | 2016-08-07 00:54:49 +0200 | |
| commit | bee833bf524e58ea9cf5309fb89f6f8b30005720 (patch) | |
| tree | 5d5db30ad0285e477e683e86d6a01ebf1ecc984a /app/Models/StatsDAO.php | |
| parent | 4402d92f013ada8fa814a02d8ee1a6a61a7e5001 (diff) | |
Problematic MySQL reserved keyword
`read` and `reads` are reserved keywords
Diffstat (limited to 'app/Models/StatsDAO.php')
| -rw-r--r-- | app/Models/StatsDAO.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Models/StatsDAO.php b/app/Models/StatsDAO.php index e18ba4748..3f5bf8515 100644 --- a/app/Models/StatsDAO.php +++ b/app/Models/StatsDAO.php @@ -38,9 +38,9 @@ class FreshRSS_StatsDAO extends Minz_ModelPdo { } $sql = <<<SQL SELECT COUNT(1) AS total, -COUNT(1) - SUM(e.is_read) AS unread, -SUM(e.is_read) AS read, -SUM(e.is_favorite) AS favorite +COUNT(1) - SUM(e.is_read) AS count_unreads, +SUM(e.is_read) AS count_reads, +SUM(e.is_favorite) AS count_favorites FROM {$this->prefix}entry AS e , {$this->prefix}feed AS f WHERE e.id_feed = f.id |
