code: 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;
  	}
docs: Get the last query that was run with data that was used bound to it.
  
  @param string $connection
  @return string