diff --git a/module/VuFind/src/VuFind/Db/Row/User.php b/module/VuFind/src/VuFind/Db/Row/User.php index 11509bf12189a64a2a5d79b1d45609f16daba5b3..1c8f404a12f2f6f54396875295f3b8263d0d1121 100644 --- a/module/VuFind/src/VuFind/Db/Row/User.php +++ b/module/VuFind/src/VuFind/Db/Row/User.php @@ -203,7 +203,7 @@ class User extends RowGateway array( '*', 'cnt' => new Expression( - 'COUNT(?)', array('ur.list_id'), + 'COUNT(DISTINCT(?))', array('ur.resource_id'), array(Expression::TYPE_IDENTIFIER) ) )