UPDATE
  #{dynamic_securityFlow}.tlk_SendSmsToPolice
SET
  LASTMODIFIED = '#{LASTMODIFIED}',
  ITEM_replyContent = '#{ITEM_replyContent}',
  ITEM_replyFile = '#{ITEM_replyFile}',
  ITEM_replyCompany = '#{ITEM_replyCompany}',
  ITEM_replyStatus = '#{ITEM_replyStatus}',
  ITEM_readStatus = '#{ITEM_readStatus}',
  ITEM_readDate = '#{ITEM_readDate}',
  ITEM_replyName = '#{ITEM_replyName}',
  ITEM_replyDate = '#{ITEM_replyDate}'
WHERE
  ID = '#{ID}'
  and LASTMODIFIED < '#{LASTMODIFIED}'