title: BIGINT UNSIGNED value is out of range error (Error Number : 1690)
body: <p>I'm getting this error when I try to delete a thread in vBulletin 4. This isn't a vBulletin issue as it is an add-on modification. Below is the code I am using. If they have, say, 15 words in the thread post and I delete the thread, I get the error even though it is 15 words that is being deleted, setting their word count back to zero, not a negative number.</p>
  
  <pre><code>$threadinfo = fetch_threadinfo($threadid); 
  $postinfo = fetch_postinfo($threadinfo['firstpostid']); 
  $userdm =&amp; datamanager_init('User', $this-&gt;registry, ERRTYPE_SILENT); 
  $userdm-&gt;set_existing($postinfo); 
  $userdm-&gt;set('totalwords', 'totalwords - ' . str_word_count($postinfo['pagetext']), false); 
  $userdm-&gt;save(); 
  unset($userdm);
  </code></pre>
  
  <p>Can anyone please tell me what I am missing?</p>