Fix a DOS on too large quick searches (too many tokens ==> very large SQL