UPDATE
  #{dynamic_securityFlow}.tlk_escapeman
SET
  LASTMODIFIED = '#{LASTMODIFIED}',
  ITEM_companyMan = '#{ITEM_companyMan}',
  ITEM_companyTime = '#{ITEM_companyTime}',
  ITEM_companyStatus = '#{ITEM_companyStatus}',
  ITEM_companyTreatment = '#{ITEM_companyTreatment}'
WHERE
  ID = REPLACE (
    '#{ID}',
    '__nGsPx71jDn3zzNbSCZP',
    '__ovMcA0Xv3ZRp8VsCFpM'
  )and LASTMODIFIED < '#{LASTMODIFIED}'