Something
public text v1 · immutable<?php
$query = "SELECT SUM(points) FROM year_end_votes WHERE record_id = '333'";
$result = mysql_query($query) or die('Error : ' . mysql_error());
if($result && mysql_num_rows($result) == 1) {
$row = mysql_fetch_assoc($result);
$all_points = $row['points'];
echo "Total score = {$all_points}";
}