$query = mysql_query("SELECT sum(meta_value) AS ´meta_sum´ FROM wp_postmeta WHERE meta_key='Hours'") OR DIE(mysql_error()); while($row = mysql_fetch_assoc($query)) { echo $row['meta_sum']; }