classes/Peyote/Join.php
public function compile()
	{
		if (empty($this->joins))
		{
			return "";
		}

		$joins = array();
		foreach ($this->joins as $join)
		{
			if ($join[0] === "ON")
			{
				$joins[] = $this->compileOn($join);
			}
			else
			{
				$joins[] = $this->compileUsing($join);
			}
		}

		return join(" ", $joins);
	}
public function compile()
	{
		if (empty($this->joins))
		{
			return "";
		}

		$joins = array();
		foreach ($this->joins as $join)
		{
			if ($join[0] === "ON")
			{
				$joins[] = $this->compileOn($join);
			}
			else
			{
				$joins[] = $this->compileUsing($join);
			}
		}

		return join(" ", $joins);
	}
Compiles the query into raw SQL

@return  string