Actually, mysql_query with SELECT statement returns a resource which isn't very useful to you untill you pass it to some function that converts it to data. In your case, the best one would be mysql_fetch_array. So what you need to do is:
PHP Code:
<?
$album_views = mysql_query("SELECT SUM(views) FROM `photo_albums`") or die(mysql_error());
$album_views = mysql_fetch_array($album_views); //Makes an array out of internal object/resource
?>
There have been <?=$album_views[0]?> total album views.
There you go, it should work