title: Inner join doesn't work with PDO and fetch assoc
body: <p>For my news en post comment system I can't get the query get results from 2 tables (tbl_news and tbl_comments). In another program I made with mysqli the inner join worked but now this time with PDO I can't get it to work.</p>
  
  <p>This is my code:</p>
  
  <pre><code>$newsQuery = $db-&gt;prepare("SELECT * 
                             FROM tbl_news 
                             INNER JOIN tbl_comments ON tbl_news.news_id = tbl_comments.news_id
                             ORDER BY news_id DESC 
                             LIMIT 5");
  
  $newsQuery -&gt; execute();
  
  while($newsFetch = $newsQuery-&gt;fetch(PDO::FETCH_OBJ)) {
  
  echo "&lt;div class='news-post'&gt;&lt;h3 class='post-title'&gt;" . $newsFetch-&gt;title . "&lt;/h3&gt;
          &lt;p style='float:left'&gt;By: &lt;span class='post-author'&gt;" . $newsFetch-&gt;author . "&lt;/span&gt;&lt;/p&gt;
          &lt;p style='float:right'&gt;Date: &lt;span class='post-date' style='font-style:italic;'&gt;" . $newsFetch-&gt;date . "&lt;/span&gt;&lt;/p&gt;
          &lt;br&gt;&lt;p&gt;" . $newsFetch-&gt;text . "&lt;/p&gt;&lt;/div&gt;";
          if(isset($_SESSION['user']) &amp;&amp; ($newsFetch-&gt;comments == '1')) {
              echo "Comments(";
              echo "&lt;div id='commentClick'&gt;Click &lt;a href='#' id='openForm'&gt;here&lt;/a&gt; to post a comment&lt;/div&gt;";
              echo "&lt;form class='navbar-form' id='commentForm'&gt;&lt;input style='margin-right:5px' type='text' size='80%' name='commentText' placeholder='Type your comment here'&gt;&lt;input type='submit' class='btn btn-primary btn-xs' value='Send'&gt;&lt;/form&gt;";
          }elseif(!isset($_SESSION['user']) &amp;&amp; ($newsFetch-&gt;comments == '1')) {
              echo "Click here to view comments. If you want to post comments please login first";
          }else{
              echo "Comments are disabled for this news item";
          }
  }
  </code></pre>
  
  <p>In the database I have the following values:
  in tbl_news there is a news_id and in tbl_comments are comment_id, news_id and user_id.</p>
  
  <p>Thanks in advance!</p>