If you fetch the following data via an associative array in php:
SELECT thread.id, thread.title, thread.content, author.username, author.id
FROM thread INNER JOIN author
ON author_id = author.id
How can you differentiate between author.id and thread.id?
$threads = select_Query('SELECT thread.id, thread.title, thread.content, author.username, author.id
FROM thread INNER JOIN author
ON author_id = author.id', $link);