fixed booked list sql statement