protected function getTable()
	{
		$table = parent::getTable();

		if ($table instanceof SelectQuery) return "(" . $table->get(false) . ")";

		return $table;
	}
protected function getTable()
	{
		$table = parent::getTable();

		if ($table instanceof SelectQuery) return "(" . $table->get(false) . ")";

		return $table;
	}
protected function getTable ( ) { $ table = parent :: getTable ( ) ; if ( $ table instanceof SelectQuery ) return "(" . $ table -> get ( false ) . ")" ; return $ table ; }
Allow the table to be a SelectQuery

@return string
Allow the table to be a SelectQuery