Soved query over 4000 char bug