UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'LTlGUdLkgZJJAXFlPc8SytHeVCboG1Gh2jBVFDkaJMU=' 
WHERE 
  key_id = '143fa68be55ea69207037a0f5af679fdf04508c762b0b017f4d358ed08ccae07' 
  AND (
    token = 'LTlGUdLkgZJJAXFlPc8SytHeVCboG1Gh2jBVFDkaJMU=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00019