$threads = mysql_query(" SELECT t2.username, t2.userid, t2.posttitle, t2.posttext, t2.tid, t2.timestamp FROM post AS t2 LEFT JOIN thread AS t1 ON t2.tid = t1.threadid WHERE t1.pluserid = " . trim(intval($_GET[userid])) . " ORDER BY t2.timestamp DESC ");