title: Doctrine: Count results returns more than get results
body: <p>I have a doctrine query to return all my customers belonging to a particular shop. In total, 29 records are returned. However, if I run a count query, with almost identical DQL, I get a different number of results</p>
  
  <p><b>Query1</b> - Fetch Results: </p>
  
  <pre><code>SELECT c FROM Customer c INNER JOIN c.shops cs WHERE cs.shop IN(2, 3)
  </code></pre>
  
  <p>Returns (using count() to count the number of records returned)</p>
  
  <pre><code>int(29) 
  </code></pre>
  
  <p><br />
  <b>Query2</b> - Count Results:</p>
  
  <pre><code>SELECT count(c) FROM Customer c INNER JOIN c.shops cs WHERE cs.shop IN(2, 3)
  </code></pre>
  
  <p>Retruns:</p>
  
  <pre><code>array(1) { [0]=&gt; array(1) { [1]=&gt; string(2) "36" } }
  </code></pre>
  
  <p><br />
  I cant seem to work out how that can be happening? Hopefully someone can help...</p>