i believe there is an error with the call..
$numposts = $wpdb->get_var("SELECT COUNT(DISTINCT ID) FROM $fromwhere");
in the above code, but i could be wrong.
i believe there is an error with the call..
$numposts = $wpdb->get_var("SELECT COUNT(DISTINCT ID) FROM $fromwhere");
in the above code, but i could be wrong.