UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '67bDS3xr1QKpXonxjbpNnGBUzIfMlLlFKh8HpwpXcIM=' 
WHERE 
  key_id = '190ab6491ae6513a17e7858bfb0f4b09003d9b62c3d13353b566b677bcffa2a0' 
  AND (
    token = '67bDS3xr1QKpXonxjbpNnGBUzIfMlLlFKh8HpwpXcIM=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00034