Simple request, I just want to try and take the code here:
$post_list = $wpdb->get_results( "SELECT DISTINCT UNIX_TIMESTAMP(timestamp) AS timest, title, blog_id, post_id FROM wp_global_posts WHERE $insert (UNIX_TIMESTAMP(timestamp) <= $tnow ) ORDER BY timestamp DESC LIMIT " . $limit. "");
And modify it so that it only pulls entries from public blogs and not spam or deleted blogs. I tried doing this:
$post_list = $wpdb->get_results( "SELECT DISTINCT UNIX_TIMESTAMP(timestamp) AS timest, title, blog_id, post_id FROM wp_global_posts WHERE $insert (UNIX_TIMESTAMP(timestamp) <= $tnow ) AND public='1' AND spam = '0' AND deleted ='0' ORDER BY timestamp DESC LIMIT " . $limit. "");
But no luck. Any ideas folks?