title: How do I get one value from an SQL query in php?
body: <p>How do I get the first result of this query using php? I want the first result that is returned when the list is in descending order.</p>
  
  <pre><code>$sql2 = "SELECT orderID FROM orders WHERE 'customerID' = '".$_SESSION['accountID']."' ORDER BY
                      'orderID' DESC";
                  $lastorder = mysqli_query($sql2);
  </code></pre>
  
  <p>Thanks!</p>