simply fill query with pref 'prev-id'.