title: Code is not displaying first result
body: <p>About this code:</p>
  
  <pre><code>&lt;?php
  $result = mysqli_query($connect,"SELECT subcategories.subcat_name, subsubcategories.subsubcat_name FROM subcategories INNER JOIN subsubcategories ON subcategories.subcat_ID=subsubcategories.subcat_ID WHERE subsubcategories.subcat_ID = 1");
  $subcat_name = mysqli_fetch_array($result);
  ?&gt;
  &lt;div class="grid_5 alpha omega" id="titlescontent"&gt;&lt;p class="titlebar"&gt;&lt;?php echo $subcat_name['subcat_name'];?&gt;&lt;/p&gt;&lt;/div&gt;
  &lt;div class="clear"&gt;&lt;/div&gt;
  &lt;div class="grid_5 alpha omega" id="content"&gt;&lt;ul class="subcat"&gt;
  &lt;?php
  while ($row=mysqli_fetch_array($result)){
  ?&gt;&lt;li&gt;&lt;?php echo $row['subsubcat_name'];?&gt;&lt;/li&gt;&lt;?php
  }
  ?&gt;
  &lt;/ul&gt;&lt;/div&gt;
  &lt;div class="clear"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>For some reason it starts displaying the subsubcat_name from the 2nd result and not the first one which I also want to be displayed. Any idea how come and what I need to change in this code?</p>