[Koha] SQL statement for generating current checkouts