title: while($stmt->fetch()) Not fetching all data
body: <p>I can't find the reason why my function is not getting all the results. When I go to the page to view the comment I only see the most resent one. If I then delete that comment the next newest comment appears. I'm sure it is something simple that I have not noticed.</p>
  
  <pre><code>function getComments($inPostID=null)
  {
      $commentArray = array();
  
      if (!empty($inPostID))
      {
          //echo " Get comments for the post with the postID of ". $inPostID;
          $stmt = db::connect()-&gt;prepare("SELECT * FROM Comments WHERE postID = ? ORDER BY commentDate DESC");
          $stmt-&gt;bind_param('i', $inPostID);
          $stmt-&gt;execute(); 
          $stmt-&gt;bind_result($commentID, $postID, $userID, $commentDate, $commentContent);
          while($stmt-&gt;fetch())
          {
              echo"HI ";
              $thisComment = new ViewComment($commentID, $postID, $userID, $commentDate, $commentContent);
              array_push($commentArray, $thisComment);
          }
          $stmt-&gt;close();
      }
  
      return $commentArray;
  }
  </code></pre>