$query = "INSERT INTO thread VALUES
(1, 1, 1, now(), 0, 0, '$title', 'unlock', '$message')";
Try using that for the $title and $message clumns.
Is the column you are trying to insert the NOW() function into a mysql DATE column or DATETIME.
If not make it so and it should work just fine.