title: ZF: Invalid parameter number: no parameters were bound Error
body: <p>I created a function to get the a value of last field in a table like this</p>
  
  <pre><code>private function _getLastPosition ($menuId) {
      $select = $this -&gt; getDbTable() -&gt; select();
      $select -&gt; where("menu_id = ?", $menuId)
              -&gt; order('position DESC');
      $row = $this -&gt; getDbTable() -&gt; fetchRow($select);
      if($row) {
          return $row -&gt; position;
      } else {
          return 0;
      }
  }
  </code></pre>
  
  <p>When I run it, I get </p>
  
  <blockquote>
    <p>Message: SQLSTATE[HY093]: Invalid parameter number: no parameters were bound </p>
  </blockquote>
  
  <p>Please help me fix this</p>