@@ -, +, @@ search_patrons_to_anonymise --- Koha/Patrons.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/Patrons.pm +++ a/Koha/Patrons.pm @@ -162,7 +162,7 @@ sub search_patrons_to_anonymise { ( $library ? ( 'old_issues.branchcode' => $library ) : () ), }, { join => ["old_issues"], - group_by => 'borrowernumber' + distinct => 1, } ); return Koha::Patrons->_new_from_dbic($rs); --