title: unique one column adn return all data with mariaDB
body: <p>i have  DB with format:</p>
  <pre><code>id| name1 | name2 | price
  1 | abc   | zxc   | 0.02
  2 | abc   | asd   | 0.01
  3 | abc   | qwe   | 0.03
  4 | qaz   | qwe   | 0.03
  5 | qaz   | zxc   | 0.01
  </code></pre>
  <p>i need sorting by minimal 'price' with unique 'name1'  i.e:</p>
  <pre><code>id| name1 | name2 | price
  2 | abc   | asd   | 0.01
  5 | qaz   | zxc   | 0.01
  </code></pre>
  <p>how to do it?</p>