The only things that have uid= in them are:
PHP Code:
$gettotalpoint=mysql_query("SELECT uid, newthread, reply, admin_mod, morereply from storepoint where uid=$bbuserinfo[userid]");
PHP Code:
$result=$DB_site->query("select uid, newthread from storepoint where uid=$postuserid");
PHP Code:
$DB_site->query("UPDATE storepoint SET newthread=$newpoints where uid=$postuserid");