title: How can I select only one row for each ID in MySQL?
body: <p>I have a MySQL table that holds many entries with repeated IDs (for various reasons)
  So you might have something like</p>
  
  <pre><code>ID TIME DATA
  1  xx   xx
  2  xx   xx
  3  xx   xx
  1  xx   xx
  3  xx   xx
  </code></pre>
  
  <p>What query can I run through PHP to select each ID only once?
  So I would like my result set to look like</p>
  
  <pre><code>ID TIME DATA
  1  xx   xx
  2  xx   xx
  3  xx   xx
  </code></pre>