UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '+z+WVJdOhMN2fFiHJCE3kou7EpjWyan3zyzOTtWXsr4=' 
WHERE 
  key_id = '6272de87bbf566af0eab7edf406de4dc27fa13cb89feaea665e3431d2b03aa60' 
  AND (
    token = '+z+WVJdOhMN2fFiHJCE3kou7EpjWyan3zyzOTtWXsr4=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00048