title: array_unique in foreach loop - Notice: Array to string conversion
body: <pre><code>$universe = $_SESSION["company"];
  $sql = "SELECT manufacturer FROM spaceships WHERE `$universe` = 1";
  $companyListQuery = $db-&gt;prepare($sql);
  $companyListQuery-&gt;execute();
  $companyList = $companyListQuery-&gt;fetchAll();
  $companyList = array_unique($companyList);
  foreach($companyList as $row){
  $selected = $row["manufacturer"];
  echo '&lt;tr&gt;';
  echo '&lt;td class="table"&gt;'.$row["manufacturer"].'&lt;/td&gt;';
  }
  </code></pre>
  
  <p>So this is giving me a notice saying there is an array to string conversion. But as far as I'm aware fetchAll() returns an array so I'm not sure why it's saying this? Help is appreciated.</p>