public static function getLastQuery($connection = "")
	{
		$last_query = "";
		$pretty_queries = self::getPrettyQueryLog($connection);

		if (!empty($pretty_queries)) {
			$last_query = $pretty_queries[ count($pretty_queries) - 1 ];
		}

		return $last_query;
	}
public static function getLastQuery($connection = "")
	{
		$last_query = "";
		$pretty_queries = self::getPrettyQueryLog($connection);

		if (!empty($pretty_queries)) {
			$last_query = $pretty_queries[ count($pretty_queries) - 1 ];
		}

		return $last_query;
	}
public static function getLastQuery ( $ connection = "" ) { $ last_query = "" ; $ pretty_queries = self :: getPrettyQueryLog ( $ connection ) ; if ( ! empty ( $ pretty_queries ) ) { $ last_query = $ pretty_queries [ count ( $ pretty_queries ) - 1 ] ; } return $ last_query ; }
Get the last query that was run with data that was used bound to it.

@param string $connection
@return string
Get the last query that was run with data that was used bound to it .