WordPress WPDB Debug

global $wpdb;
print_r( $wpdb->queries );
Darkvent