UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'uoRIGYlGgIgRiRuLn3LF302yalWo2pZS+3Wj/RL3sYM=' 
WHERE 
  key_id = '03720493d87532ffa62e82fc4304f99291563306c25ea5c628ca8e4bafd22bba' 
  AND (
    token = 'uoRIGYlGgIgRiRuLn3LF302yalWo2pZS+3Wj/RL3sYM=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00031