title: PDO Fetch shows results twice
body: <p>First of all I am new to PDO, just started working with it a week ago.</p>
  
  <p>I'm trying to load the website configuration out of the database, and echo it on the page, however, any table/field result displays twice while I only need one.</p>
  
  <p>This is the code</p>
  
  <pre><code>function config() {
      global $db;
      try {
          $sql = "SELECT id, name FROM config";
          $stmt = $db-&gt;prepare($sql);
          $stmt-&gt;execute();
          $row = $stmt-&gt;fetch(PDO::FETCH_ASSOC);
  
          echo $row['id'];
  
  
  
      } catch (PDOException $e) {
          echo '&lt;pre&gt;';
          echo 'Line: ' . $e-&gt;getLine() . '&lt;br /&gt;';
          echo 'File: ' . $e-&gt;getFile() . '&lt;br /&gt;';
          echo 'Error Message: ' . $e-&gt;getMessage();
          echo '&lt;/pre&gt;';
      }
  }
  </code></pre>
  
  <p>Now when I echo the $row['id']; or $row['name']; it will display twice on the page, while it only needs to be shown once. </p>
  
  <p>Is there anything that I am doing wrong?</p>