UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'EVNw9WCs0P6H4NTYRM9Z4AsiV5Bum60h9xd1yr2C8s0=' 
WHERE 
  key_id = '75e59f8a8b6ea299745cf1f922600e844b550a0ab566e7f14b00228201ba3f0e' 
  AND (
    token = 'EVNw9WCs0P6H4NTYRM9Z4AsiV5Bum60h9xd1yr2C8s0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00022