UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'qZnobFX8nL3Hs+XezCthF2/H3YjLvCatxpAa9TnrCIQ=' 
WHERE 
  key_id = 'c410d0297e6e68580e41b9c9ac38afc45539f9a4f9c20c4ea0385fab4577ab76' 
  AND (
    token = 'qZnobFX8nL3Hs+XezCthF2/H3YjLvCatxpAa9TnrCIQ=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00066