UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'qWkU3V13swkiJ5S3qncjLrat9wg4hwvkJS/gnNuFBaU=' 
WHERE 
  key_id = '0bfa91f259915f59069970f3a65998f926317334184357d71ce23dd5b6c43c4d' 
  AND (
    token = 'qWkU3V13swkiJ5S3qncjLrat9wg4hwvkJS/gnNuFBaU=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00044