From e15eec7fdd3d7a889c297ae65f098be4627dd901 Mon Sep 17 00:00:00 2001 From: Andrew DeMaria Date: Sat, 28 Jan 2017 16:09:01 -0700 Subject: [PATCH] Fixed column reference Signed-off-by: Andrew DeMaria --- .../src/main/java/org/libresonic/player/dao/RatingDao.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libresonic-main/src/main/java/org/libresonic/player/dao/RatingDao.java b/libresonic-main/src/main/java/org/libresonic/player/dao/RatingDao.java index d8f5d225..aa050967 100644 --- a/libresonic-main/src/main/java/org/libresonic/player/dao/RatingDao.java +++ b/libresonic-main/src/main/java/org/libresonic/player/dao/RatingDao.java @@ -59,7 +59,7 @@ public class RatingDao extends AbstractDao { String sql = "select user_rating.path from user_rating, media_file " + "where user_rating.path=media_file.path and media_file.present and media_file.type = :type and media_file.folder in (:folders) " + - "group by path " + + "group by user_rating.path " + "order by avg(rating) desc limit :count offset :offset"; return namedQueryForStrings(sql, args); }