title: MySQL Query with DISTINCT and ORDER BY
body: <p>Here is my query:</p>
  
  <pre><code>$result = $mysqli-&gt;query('SELECT DISTINCT SKU_SIZE_PART1 
                            FROM SKU_DATA 
                            ORDER BY SKU_SIZE_PART1 DESC');
  </code></pre>
  
  <p>Now this works perfect for SKU_SIZE_PART1 but I have 2 more parts that I need to grab.  Now when I put a comma and do this:  'SKU_SIZE_PART1, SKU_SIZE_PART2, SKU_SIZE_PART3' then the DISTINCT doesn't work and I get a ton of duplicates, and then I'm not sure how to order the query so that all of them are ordered by the size and DESC.</p>
  
  <p>Does that make sense?  I could just duplicate that query 2 more times and have 3 separate queries but I would like to know how to accomplish this with just one.</p>