title: Zend Database Table getrow
body: <p>I have a table of serial keys</p>
  
  <pre><code>+----+---------------------+------+
  | id | product_key         | used |
  +----+---------------------+------+
  |  1 | 3C45-GH76-9V74-HLKJ |    1 |
  |  2 | REDF-6KI9-00IU-4867 |    0 |
  |  3 | 1111-1111-1111-1111 |    0 |
  |  4 | 2222-2222-2222-2222 |    0 |
  |  5 | 3333-3333-3333-3333 |    0 |
  +----+---------------------+------+
  </code></pre>
  
  <p>I would like to get one row record that <code>used=0</code> using zend framework. Then change to <code>used=1</code> if that <code>product_key</code> had select.</p>
  
  <p>I am confuse using Zend.</p>
  
  <p>I think it's something like that, but how to assign "1" into used if that product key had been select?</p>
  
  <pre><code>$productKey = $this-&gt;_helper-&gt;model('ProductKeys')-&gt;fetchOne('SELECT * from product_keys WHERE used=0 LIMIT 1');
  </code></pre>