public function where(array $where, $type = 'AND') { if (!empty($where)) { $whereClause = implode(' ' . $type . ' ', $this->parseWhereToSQLFragments($where)); $this->builder()->andWhere($whereClause); } return $this; }