You have mixed up your naming, which is probably what throws you off track.
thread
------------
id auto
name
created
created_by
post
-----------
id auto
thread_id
author
title
body
created
Now, when a new thread is created, a new id is generated. Each post (including the first one), goes into table "post", and the corresponding thread.id is inserted as value for post.thread_id.
When you want to show posts in a given thread, you
-- @thread is the viewed thread's id, probably given by a link query string: ?thread=1234
-- Have a look at your browser's address bar when viewing this thread for an example...
SELECT relevant, fields FROM post WHERE thread_id = @thread
ORDER BY created ASC
If you're going to use pagination (i.e. show a subset of posts on each page) and also want to show the original post on each page, I'd move the first post (when the thread is created) into the thread table. Otherwise I'd leave it in the post table.