public function filter($sql, $params = array()) { $this->_queryForWrite()->andWhere($sql, $params); return $this; }