Messed around with the SQL tables to make sure that we can order the threads by the last post made.

In other news, my head is now quite fuzzy and the wall is a mite dented.