protected function compileWheres(array $wheres, $query = '') { foreach ($wheres as $where) { $query .= $this->compileWhere($where); } return $query; }