title: How does the SQL injection from the "Bobby Tables" XKCD comic work?
body: <p>Just looking at:</p>
  
  <p><img src="https://i.stack.imgur.com/G0ifh.png" alt="XKCD Strip" title="Her daughter is named Help I&#39;m trapped in a driver&#39;s license factory.">
  <em>(Source: <a href="https://xkcd.com/327/" rel="noreferrer">https://xkcd.com/327/</a>)</em></p>
  
  <p>What does this SQL do:</p>
  
  <pre><code>Robert'); DROP TABLE STUDENTS; --
  </code></pre>
  
  <p>I know both <code>'</code> and <code>--</code> are for comments, but doesn't the word <code>DROP</code> get commented as well since it is part of the same line?</p>