title: A PHP Error was encountered Severity: Notice Message: Undefined property: stdClass::$comment_count Filename: blog/index.php Line Number: 35
body: <p>My line number 35 of view/blog/index.php is as:</p>
  
  <pre><code>&lt;a href="&lt;?php echo base_url().'post/'.$post-&gt;entry_id.'#comments';?&gt;" class="comments"&gt;Comments (&lt;?php echo $post-&gt;comment_count;?&gt;)&lt;/a&gt; 
  </code></pre>
  
  <p>I have made a column in table comment as <code>comment_id</code> still its not working</p>
  
  <p>and in my <code>model/blog_model.php</code> it is a function as:</p>
  
  <pre><code>$count = array(
          'comment_count' =&gt; $total_count,
      );
  </code></pre>
  
  <p>Thanks in advance</p>