core-bundle/src/Resources/contao/library/Contao/Database/Result.php
public function last()
	{
		$this->intIndex = $this->count() - 1;

		$this->blnDone = true;
		$this->arrCache = $this->resultSet[$this->intIndex];

		return $this;
	}
public function last()
	{
		$this->intIndex = $this->count() - 1;

		$this->blnDone = true;
		$this->arrCache = $this->resultSet[$this->intIndex];

		return $this;
	}
Go to the last row of the current result

@return Result|boolean The result object or false if there is no last row