GROUP BY korrigiert

This commit is contained in:
Carsten Götzinger 2018-02-14 16:11:30 +01:00
parent c63c4dd127
commit 9cef234103

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();