first_user_id = execute 'select min(id) .....'

and use first_user_id in bellow requests