I have a PHP script that selects a random POLL from a vbullitin database (from the `poll` table) and it will put up a display of the poll selected. I want to make a link to the showthread.php to display the post that has the poll. The problem is I have no idea how the items in the `poll` table is linked to the posts. Any insight would be appreciated. =)