hapus $wpdb
dari nama tabel. Kode akan berfungsi
dari
$count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->pincode_distro1 WHERE pincode = '$the_order->shipping_postcode'");
ke
$count = $wpdb->get_var("SELECT COUNT(*) FROM pincode_distro1 WHERE pincode = '$the_order->shipping_postcode'");