original_string: public function get_query()
  	{
  		// Get the columns
  		$columns = $this->select(false);
  
  		// Start building the query
  		$select = $columns;
  		if ($this->use_subquery())
  		{
  			$select = array();
  			foreach ($columns as $c)
  			{
  				$select[] = $c[0];
  			}
  		}
  		$query = call_fuel_func_array('DB::select', $select);
  
  		// Set the defined connection on the query
  		$query->set_connection($this->connection);
  
  		// Set from table
  		$query->from(array($this->_table(), $this->alias));
  
  		// Build the query further
  		$tmp = $this->build_query($query, $columns);
  
  		return $tmp['query'];
  	}
code: public function get_query()
  	{
  		// Get the columns
  		$columns = $this->select(false);
  
  		// Start building the query
  		$select = $columns;
  		if ($this->use_subquery())
  		{
  			$select = array();
  			foreach ($columns as $c)
  			{
  				$select[] = $c[0];
  			}
  		}
  		$query = call_fuel_func_array('DB::select', $select);
  
  		// Set the defined connection on the query
  		$query->set_connection($this->connection);
  
  		// Set from table
  		$query->from(array($this->_table(), $this->alias));
  
  		// Build the query further
  		$tmp = $this->build_query($query, $columns);
  
  		return $tmp['query'];
  	}
code_tokens: public function get_query ( ) { // Get the columns $ columns = $ this -> select ( false ) ; // Start building the query $ select = $ columns ; if ( $ this -> use_subquery ( ) ) { $ select = array ( ) ; foreach ( $ columns as $ c ) { $ select [ ] = $ c [ 0 ] ; } } $ query = call_fuel_func_array ( 'DB::select' , $ select ) ; // Set the defined connection on the query $ query -> set_connection ( $ this -> connection ) ; // Set from table $ query -> from ( array ( $ this -> _table ( ) , $ this -> alias ) ) ; // Build the query further $ tmp = $ this -> build_query ( $ query , $ columns ) ; return $ tmp [ 'query' ] ; }
docstring: Get the Query as it's been build up to this point and return it as an object
  
  @return  Database_Query
docstring_tokens: Get the Query as it s been build up to this point and return it as an object