Totally not working for a board which originate as phpbb, was imported to vb, then imported back to phpbb and then imported again to vb. This over the course of more than two years. My postids now start at something like 70,000 and the board only has some 60,000 posts
$the_post = $DB_site->query("SELECT * FROM ".TABLE_PREFIX."post ORDER BY dateline ASC LIMIT 49999, 1");
}
That may not work as-is. I don't have anything to look at correct syntax now. Wouldn't dateline be the best thing to go for though? As far as I know, editing the post doesn't change the dateline...
Also, that 49999 might have to be at 50000 since LIMIT could start counting at one.