Correct query object on which ID is manipulated to newQuery