Hi, why doesn't the following return a rowset containing one row? In short, I have a model called Animal and I would like to get a row based on a constraint:
PHP Code:
function updateAction() {
$this->view->title = "Update Animal";
$episode = new Animal();
$sql = "SELECT * FROM animals WHERE is_rare = 1 ORDER BY id DESC LIMIT 1";
$this->view->currentAnimal = $animal->fetchAll( $sql );
}