public function buildJoin()
	{
		$joins = [];

		foreach ($this->join as $join)
		{
			if (isset($join['raw']))
			{
				$joins[] = strtoupper($join['type']) . ' JOIN ' . $join['table'] . ' ON ' . $join['raw'];
			}
			else
			{
				$joins[] = strtoupper($join['type']) . ' JOIN ' . $join['table'] . ' ON ' . $join['left'] . ' = ' . $join['right'];
			}
		}

		return implode("\n", $joins);
	}