title: PHP's PDO loop returning all excluding first row
body: <p>Got problem with <code>PDOStatement-&gt;fetch</code> under <em>symfony</em> (v1.4.6) as while fetching records from statement first row is always excluded.</p>
  
  <p>Code bellow:</p>
  
  <pre><code>&lt;?php var_dump($stats-&gt;rowCount()); ?&gt;
  &lt;?php var_dump(count($stats-&gt;fetchAll())); ?&gt;
  </code></pre>
  
  <p>Produces:</p>
  
  <pre><code>int 14
  int 13
  </code></pre>
  
  <p>And code bellow:</p>
  
  <pre><code>&lt;?php $i = 0; ?&gt;
  &lt;?php var_dump($stats-&gt;rowCount()); ?&gt;
  &lt;?php while ($v = $stats-&gt;fetch()): ?&gt;
      &lt;?php var_dump(++$i); ?&gt;
  </code></pre>
  
  <p>Produces:</p>
  
  <pre><code>int 14
  int 1
  int 2
  int 3
  int 4
  int 5
  int 6
  int 7
  int 8
  int 9
  int 10
  int 11
  int 12
  int 13
  </code></pre>
  
  <p>Any ideas why row is excluded? </p>