UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'l67eJ/lY/7RNa6kfmb2nmooSo+Ja+wE10TTu0KqFE2c=' 
WHERE 
  key_id = '80605d5a8390ef02ddef900c5bd0248c1b5fc249dc36ddb32e1cd74d57749e02' 
  AND (
    token = 'l67eJ/lY/7RNa6kfmb2nmooSo+Ja+wE10TTu0KqFE2c=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00045