public function andWhere($sql = null, $params = array()) { if (!isset($this->_where)) { $this->_where = new Criteria(); } $this->_where->and(new Criteria($sql, $params)); return $this; }