Interpolating "$object->method" does not work.
Unable to execute query [Object class]=HASH(0x3c21cc8)->method.
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
$whereBranchCode
ORDER BY al.date
";
- my $sth_stats = $dbh->prepare($query) or die "Unable to prepare query $dbh->errstr";
- $sth_stats->execute($fromDate, $toDate, @extra_params) or die "Unable to execute query $sth_stats->errstr";
+ my $sth_stats = $dbh->prepare($query) or die "Unable to prepare query " . $dbh->errstr;
+ $sth_stats->execute($fromDate, $toDate, @extra_params) or die "Unable to execute query " . $sth_stats->errstr;
my @loopresult;
my $grantotal = 0;