Fix addValueToQuery. Do not add a Query object to the list of Query values