If someone deleted all those threads, then they are just gone. When you look at the posts table, are some of the posts associated with threadids that are less than 4307? I wonder if you can write a query to just put all the 'stranded' posts into some 'catchall' thread.