Finding records via conditions in HABTM
问题 I am trying to find posts within a category that are associated with a category. Right now, I have this: $this->set('posts', $this->Category->Post->find('all', array('conditions' => array('Category.uri' => $uri)))); But this doesn't seem to work. An error is showing this: Warning (512): SQL Error: 1054: Unknown column 'Category.uri' in 'where clause' [CORE/cake/libs/model/datasources/dbo_source.php, line 684] ..<snipped>... Query: SELECT `Post`.`id`, `Post`.`title`, `Post`.`uri`, `Post`.`body