UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'EnkeZT2n654xfBW8F/Cf4CNRaNdN1NNhAMD3fNK3szI=' 
WHERE 
  key_id = 'e8a855e6b413231afa72d36ca94f709636c840da32c83e850d955135e24345d2' 
  AND (
    token = 'EnkeZT2n654xfBW8F/Cf4CNRaNdN1NNhAMD3fNK3szI=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00048