title: Cakephp complex hasMany relationship query
body: <p>I'm very new to CakePHP. I want to do a query in my database like this</p>
  
  <pre><code>SELECT m.id, l.*, lp.picture_path 
  FROM member m INNER JOIN listing l ON m.member_id = l.member_id
  INNER JOIN listingPicture lp ON l.listing_id = lp.listing_id
  WHERE lp.picture_default='1'
  </code></pre>
  
  <p>I have 3 models in my cakephp : Member, Listing, and ListingPicture each with the following relationship</p>
  
  <ul>
  <li>Member hasMany Listing</li>
  <li>Listing hasMany ListingPicture</li>
  <li>Listing belongsTo Member</li>
  <li>ListingPicture belongsTo Listing</li>
  </ul>
  
  <p>From my Member controller how do I execute the query above ?</p>
  
  <p>I've tried </p>
  
  <pre><code>$this-&gt;Member-&gt;Listing-&gt;find("all")
  </code></pre>
  
  <p>... which works well but when I added a conditions like this:</p>
  
  <pre><code>$this-&gt;Member-&gt;Listing-&gt;find('all', array(
      'conditions' =&gt; array('ListingPicture.picture_default'=&gt;'1')));
  </code></pre>
  
  <p>... I get an error.</p>
  
  <p>Because I'm new to CakePHP, I don't know how to see the error.</p>
  
  <p>Can anyone advise me how I can perform this query?</p>