Fixed wp_ to use $wpdb->prefix for PNMs