[Koha] weird report behaviour or just bad SQL?