title: fetch first column from table
body: <p>First of all thanks for reading this.
  <br>
  I'm having this function setup</p>
  
  <pre><code>function SelectHydross($conn){
      $sql = "SELECT * from HydrossTheUnstable"; 
      $data = $conn-&gt;query($sql);
  
      $title = $data-&gt;fetchColumn(1);
      echo '&lt;div&gt;&lt;table&gt;';
      echo '&lt;tr&gt;';
      echo "&lt;th&gt;" . $title['BossName'] . "&lt;/th&gt;";
  </code></pre>
  
  <p>Which gives me <code>Warning: Illegal string offset 'BossName'</code>
  <br>Line 70 is: <code>echo "&lt;th&gt;" . $title['BossName'] . "&lt;/th&gt;";</code>
  <br>
  <br>
  If i'm using this code<br></p>
  
  <pre><code>function SelectHydross($conn){
      $sql = "SELECT * from HydrossTheUnstable"; 
      $data = $conn-&gt;query($sql);
      $title = $data-&gt;fetch(PDO::FETCH_ASSOC); 
      echo '&lt;div&gt;&lt;table&gt;';
      echo '&lt;tr&gt;';
      echo "&lt;th&gt;" . $title['BossName'] . "&lt;/th&gt;";
  </code></pre>
  
  <p>It does skip the first column and starts with the 2nd.<br>
  I don't know any way out at the moment and i'd like to ask for some help!</p>
  
  <p>This is how my table looks like</p>
  
  <p><a href="https://i.stack.imgur.com/iAGPe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iAGPe.png" alt="enter image description here"></a></p>