UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'rtejk56UsbykDsVoOhADDv6eX8ZzQZ/m8c+7Lq1Lmz0=' 
WHERE 
  key_id = '83908f5ab4ae550866c14a5c9eed9a191637137ff41f1017c366464dcf086df4' 
  AND (
    token = 'rtejk56UsbykDsVoOhADDv6eX8ZzQZ/m8c+7Lq1Lmz0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00038