Query should be correctly formatted and debug code has been removed.