Correcting query for bookings
More corrections