[Koha] SQL query on number of days to get a book