GROUP BY korrigiert
This commit is contained in:
parent
c63c4dd127
commit
9cef234103
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user