private function parseViewCreateStatement($createStatement) {
		$matches = preg_split('/AS/i', $createStatement);
		if (isset($matches[1])) {
			return trim($matches[1]);		
		}
		return $createStatement;
	}
private function parseViewCreateStatement($createStatement) {
		$matches = preg_split('/AS/i', $createStatement);
		if (isset($matches[1])) {
			return trim($matches[1]);		
		}
		return $createStatement;
	}
private function parseViewCreateStatement ( $ createStatement ) { $ matches = preg_split ( '/AS/i' , $ createStatement ) ; if ( isset ( $ matches [ 1 ] ) ) { return trim ( $ matches [ 1 ] ) ; } return $ createStatement ; }
Parse the given create statement and extract the query
@param string $createStatement
Parse the given create statement and extract the query