title: mysql limit inside group?
body: <p>I want to limit the size of records inside a group, and here is my trial, how to do it right?</p>
  
  <pre><code>mysql&gt; select * from accounts limit 5 group by type;
  </code></pre>
  
  <blockquote>
    <p>ERROR 1064 (42000): You have an error in your SQL syntax; check the manual
                            that corresponds to your MySQL server version for the
                            right syntax to use near 'group by type' at line 1</p>
  </blockquote>