Update dbo._Items Set RefItemID='25673',CreaterName='iLegend' Where ID64 = (Select ItemID From _Inventory Where CharID = @CharID and Slot = '6' and ItemID>0) and RefItemID in (25669,25670,25671,25672)