title: COUNT(*) keeps returning a zero (0)
body: <p>This code:</p>
  
  <pre><code>while($row = $results-&gt;fetch_assoc())
  {
  
      //Count function
      $count_likes=$mysqli-&gt;query("SELECT COUNT(*) as TOTAL_COMMENT_LIKES FROM `comment_likes` WHERE comment_id_fk='".$row["comment_id"]."'");
  
      if($count_likes-&gt;num_rows &gt; 0){
          echo $row["comment_id"];
          $row_array=$count_likes-&gt;fetch_array(MYSQLI_ASSOC);
      } else {
          $row_array['TOTAL_COMMENT_LIKES'] = ' ';
      }
      //End count function
  
      echo '&lt;div class="media" id="item_'.$row["comment_id"].'"&gt;';
      echo '&lt;p class="pull-right"&gt;&lt;small&gt;'. time_elapsed_string($row['date']) . '&lt;/small&gt;&lt;/p&gt;';
      echo '&lt;div class="media-left"&gt;';
      echo '&lt;img src="images/avatar.png" height="35" width="35"&gt;';
      echo '&lt;/div&gt;';
      echo '&lt;div class="media-body"&gt;';
      echo '&lt;a href="#"&gt;Bo Broberg&lt;/a&gt; ';
      echo convert_clickable_links($row["content"]);
      echo '&lt;p&gt;&lt;small&gt;&lt;a href=""&gt;' . $row_array['TOTAL_COMMENT_LIKES']. ' Like&lt;/a&gt; - &lt;a href=""&gt;Report&lt;/a&gt; - &lt;a href="#" class="del_button" id="del-'.$row["comment_id"].'"&gt;Delete&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;';
      echo '&lt;/div&gt;';
      echo '&lt;/div&gt;';
  
  }
  </code></pre>
  
  <p>Gives me this output </p>
  
  <blockquote>
    <p>Bo Broberg Jomen visst #hehe #ras2015 1 Like - Report - Delete</p>
    
    <p>10 hours ago  Bo Broberg Awesome 0 Like - Report - Delete</p>
  </blockquote>
  
  <p>And as you can see, in the second post, neither Bo Broberg or anyone els has pressed the like button, but it shows a 0.</p>
  
  <p>How do i remove that zero??</p>
  
  <p>If there is no likes, don't show the 0, only show the amount of likes.</p>