erm, you are running num_rows on a normal array (query_first's result is always an array, not a mysql result resource.
so the correcter version is:
PHP Code:
while ($project_info = $DB_site->fetch_array($projects))
{
$project_info['text'] = nl2br(stripslashes($project_info['text']));
extract($project_info);
$time_posted = vbdate('n-j-y, g:i:s a', $timestamp);
//where it started going wrong
$number_of_votes = $DB_site->query_first("SELECT COUNT(*) AS votes
FROM project_rate
WHERE projectid = $project_info[projectid]
");
$num_votes = number_format($number_of_votes['votes']);
but stillt a query within a while loop, is not good