use last query instead of what was in the input field