UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'l67E9J9Nq/Pgoci33PnRGQFRHID4kvEAfj5iEt3q46c=' 
WHERE 
  key_id = '62c44750a82ea7d1c0b36ebfb592a9b85d0fdc237b6ff267ba80b09b6dcd84f7' 
  AND (
    token = 'l67E9J9Nq/Pgoci33PnRGQFRHID4kvEAfj5iEt3q46c=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00040