title: SQL Statement Using Embedded Selects
body: <p>Okay, this works:</p>
  
  <pre><code>SELECT DISTINCT(USER), COUNT(DISTINCT (USER)) AS numrows 
  FROM `sometable` 
  GROUP BY USER 
  ORDER BY USER asc 
  LIMIT 0, 20
  </code></pre>
  
  <p>What I need to do now is to limit results to numrows > X. Tried a number of solutions using embedded selects, but no luck.</p>