src/Query/Tag/Select.php
protected function get_value() {
		$query = '';

		if ( $this->distinct ) {
			$query .= "DISTINCT ";
		}

		if ( $this->calc_found_rows ) {
			$query .= "SQL_CALC_FOUND_ROWS ";
		}

		if ( $this->all_columns ) {
			if ( $this->all_as ) {
				$query .= "{$this->all_as}.*";
			} else {
				$query .= '*';
			}
		} else {

			foreach ( $this->columns as $column => $as ) {
				$query .= $column;

				if ( $as !== null ) {
					$query .= " AS $as";
				}

				$query .= ", ";
			}

			$query = substr( $query, 0, - 2 );
		}

		return $query;
	}
protected function get_value() {
		$query = '';

		if ( $this->distinct ) {
			$query .= "DISTINCT ";
		}

		if ( $this->calc_found_rows ) {
			$query .= "SQL_CALC_FOUND_ROWS ";
		}

		if ( $this->all_columns ) {
			if ( $this->all_as ) {
				$query .= "{$this->all_as}.*";
			} else {
				$query .= '*';
			}
		} else {

			foreach ( $this->columns as $column => $as ) {
				$query .= $column;

				if ( $as !== null ) {
					$query .= " AS $as";
				}

				$query .= ", ";
			}

			$query = substr( $query, 0, - 2 );
		}

		return $query;
	}
Override the get value method.

@since 1.0

@return string