@@ -, +, @@ --- circ/pendingreserves.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/circ/pendingreserves.pl +++ a/circ/pendingreserves.pl @@ -256,7 +256,7 @@ foreach my $bibnum ( @biblionumbers ){ # patrons with holds my $patrons_count = Koha::Holds->search( { biblionumber => $bibnum }, - { select => [ { distinct => 'borrowernumber' } ] } + { distinct => 1, columns => qw(me.borrowernumber) } )->count; $reserves->{$bibnum}->{patrons_count} = $patrons_count; --