Corrected booking availability query