UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '/oWd8K4MdQYgk1hWGlGxjvJuYxMF2fF1C4me81IpnFQ=' 
WHERE 
  key_id = '64141dc4d7baa2dd8237a53c2686c0f5ad85caf3274c2eb24fd158864516a3f3' 
  AND (
    token = '/oWd8K4MdQYgk1hWGlGxjvJuYxMF2fF1C4me81IpnFQ=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00033