Add missing $wpdb global to avoid error on multisite environment