From: Andrew Dolgov Date: Tue, 5 Mar 2013 11:36:25 +0000 (+0400) Subject: getLabelCounters: add caption to group by to fix query failing on pgsql 8.4 (refs... X-Git-Tag: 1.7.2~3 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=123a764372fa614c2e68b641bf358ca4b39cfb6c;p=tt-rss.git getLabelCounters: add caption to group by to fix query failing on pgsql 8.4 (refs #545) --- diff --git a/include/functions.php b/include/functions.php index b381ff1e..ccf79809 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1414,7 +1414,8 @@ FROM ttrss_labels2 LEFT JOIN ttrss_user_labels2 ON (ttrss_labels2.id = label_id) LEFT JOIN ttrss_user_entries ON (ref_id = article_id AND unread = true) - WHERE ttrss_labels2.owner_uid = $owner_uid GROUP BY ttrss_labels2.id"); + WHERE ttrss_labels2.owner_uid = $owner_uid GROUP BY ttrss_labels2.id, + ttrss_labels2.caption"); while ($line = db_fetch_assoc($result)) {