title: How do I find the last record my database table using PDO?
body: <p>How can I execute this using PDO? I use MySQL for my database. I am trying to call the last <code>infog_id</code>. </p>
  
  <pre><code>$q = $conn-&gt;query("SELECT * FROM Infographic ORDER BY infog_id DESC LIMIT 1");
  $q-&gt;fetchAll(); 
  </code></pre>