Add missing `global $wpdb`