Undefined offset
<pre><code>$query = "SELECT COUNT(t.id), SUM(t.num_replies) FROM threads AS t WHERE t.forum_id=$forum_id";

$result = mysql_query($query);
list($num_threads, $num_posts) = mysql_fetch_assoc($result);
</code></pre>

<p>Equals:</p>

<pre><code>Notice: Undefined offset: 1 in C:\wamp\www\includes\functions.php on line 11

Notice: Undefined offset: 0 in C:\wamp\www\includes\functions.php on line 11
</code></pre>

<p>Any ideas how i can get rid of these notices?</p>
