Plz add condition of query > MAX_QUERY_LENGTH