system/Database/BaseBuilder.php
public function getWhere($where = null, int $limit = null, int $offset = null)
	{
		if ($where !== null)
		{
			$this->where($where);
		}

		if (! empty($limit))
		{
			$this->limit($limit, $offset);
		}

		$result = $this->db->query($this->compileSelect(), $this->binds, false);
		$this->resetSelect();

		return $result;
	}
public function getWhere($where = null, int $limit = null, int $offset = null)
	{
		if ($where !== null)
		{
			$this->where($where);
		}

		if (! empty($limit))
		{
			$this->limit($limit, $offset);
		}

		$result = $this->db->query($this->compileSelect(), $this->binds, false);
		$this->resetSelect();

		return $result;
	}
Get_Where

Allows the where clause, limit and offset to be added directly

@param string|array  $where
@param integer       $limit
@param integer       $offset

@return ResultInterface