UPDATE wp_posts SET post_status='draft' WHERE post_status='future' AND post_type='post' ORDER BY rand() LIMIT 5000