If No SQL Provided, Prevent MySQL Hanging