1. You should absolutely always use the wrapper methods in $DB_site in case vB ever supports a new database type and to ensure consistency.
2. Don't use quotes for numeric types in both queries and PHP.
Neither of those is causing the problem, but make sure $gettotalpoint is the return value of calling either mysql_query() or the more proper $DB_site->query(). It should
not be $DB_site->query_first(), which returns an array.
If you don't know what it is, use:
PHP Code:
echo "<pre>";
var_dump($gettotalpoint);
echo "</pre>";