_db->select(); $select->from($this->_getPair('DirectorFile'), new Zend_Db_Expr("1")); $select->where('`DirectorFile`.`idCategory` = ?', $this->getPrimaryKey(), Qs_Db::INT_TYPE); return !(bool) $this->_db->fetchOne($select); } }