UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'llHdOGZZG/BlW/QmI8VBmNGdB2BIVVVSf8gjcm2RR1E=' 
WHERE 
  key_id = '7b70355fe653eb8f0dd7417b5593420924228c965db760a014ade285e13020ef' 
  AND (
    token = 'llHdOGZZG/BlW/QmI8VBmNGdB2BIVVVSf8gjcm2RR1E=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00031