This can be done with a single sql call.
insert into tblNpcBattleUsersPokemons (id, [whatever the name of the other column is]) select Id, 1 from tblUsersPokemons where UserId=1 and PokemonPlace='bag'
I used longhand here because it makes no assumptions about the ordering of the columns in the destination table, which may change over time and are invalid for the insert statement.
source share