If you’re using the CakePHP Containable behavio(u)r and trying to query with conditions across a Has and Belongs To Many association, you need to specify you wish to contain the dynamically bound model records, before you do the actual find.
Here’s one example from the book that doesn’t work with Containable:
123456$this->Recipe->bindModel(array(’hasOne’ => array(’RecipesTag’)));
$this->Recipe->find(’all’, array(
‘fields’ [...]