title: CakePhp Too Many Identical Queries
body: <p>I have a complex Model with many containable. 
  However, when I run a query I see in my logs many similar queries:</p>
  
  <pre><code>SELECT `Company`.`id` FROM `u`.`companies` AS `Company` LEFT JOIN `u`.`companies` AS `Parent` ON (`Company`.`parent_id` = `Parent`.`id`) LEFT JOIN `u`.`groups` AS `Group` ON (`Company`.`group_id` = `Group`.`id`) WHERE 1 = 1 GROUP BY `Company`.`id` LIMIT 30
  SELECT `Group`.`id`, `Group`.`name`, `Group`.`alias`, `Group`.`label` FROM ``.`groups` AS `Group` WHERE `Group`.`id` = 1     
  SELECT `Group`.`id`, `Group`.`name`, `Group`.`alias`, `Group`.`label` FROM `u`.`groups` AS `Group` WHERE `Group`.`id` = 4    
  SELECT `Group`.`id`, `Group`.`name`, `Group`.`alias`, `Group`.`label` FROM `u`.`groups` AS `Group` WHERE `Group`.`id` = 1       
  SELECT `Group`.`id`, `Group`.`name`, `Group`.`alias`, `Group`.`label` FROM `u`.`groups` AS `Group` WHERE `Group`.`id` = 1       
  SELECT `Group`.`id`, `Group`.`name`, `Group`.`alias`, `Group`.`label` FROM `u`.`groups` AS `Group` WHERE `Group`.`id` = 1
  </code></pre>
  
  <p>Why there are so many identical queries?
  My query is very simple:</p>
  
  <pre><code>$this-&gt;paginate = array(
      'Company' =&gt; array(
        'contain' =&gt;array(     
          'Group',
          'Parent' =&gt; array(
              'fields' =&gt; array('ragione')
          ),
          'Parent.Group'
      ),
      'limit' =&gt; 30,
      'group' =&gt; array('Company.id'),
      'conditions' =&gt; $conditions,
      'order' =&gt; array('Company.created ASC')
      )
  ); 
  </code></pre>