GROUP BY korrigiert

This commit is contained in:
Carsten Götzinger 2018-02-14 16:11:30 +01:00
parent c63c4dd127
commit 9cef234103
1 changed files with 13 additions and 13 deletions

View File

@ -141,7 +141,7 @@ class RateItFrontend extends \Hybrid
FROM tl_rateit_items i
LEFT OUTER JOIN tl_rateit_ratings r
ON ( i.id = r.pid ) WHERE i.rkey = ? and typ=? and active='1'
GROUP BY i.rkey;";
GROUP BY i.rkey, i.title;";
$result = $this->Database->prepare($SQL_GET_RATINGS)
->execute($rkey, $typ)
->fetchAssoc();