title: Why does ? not work in the LIMIT for Zend_Db
body: <p>I have the following:</p>
  
  <pre><code>public function getAll($limit = 100)
  {   
      //if ($thread != 0) { $threadq = "WHERE threadId=$threadId"; }
  
      $query = &lt;&lt;&lt;EOF
      SELECT 
          x.*
      FROM x
  
      ORDER BY dater DESC
      LIMIT ?
  EOF;
      return self::$db-&gt;fetchAll($query, $limit);
  }   
  </code></pre>
  
  <p>It seems it turns the <code>LIMIT x</code> into <code>LIMIT 'x'</code> and so the MySQL query parser goes wrong and complains.</p>
  
  <p>However doing <code>LIMIT $limit</code> works fine</p>
  
  <p>Why does this not work? and is there another method of doing this?</p>