query returned nil result in /home/staffaco/public_html/inc/bookingFunctions.php line 28