well instead of that error try this

$query_addthread = "INSERT INTO forum_threads (boardparentid,threadname,author,lastpostername,email,lastposterid,smilie) VALUES ('$boardid','$SUBJECT','$forum_username','$forum_username','$email','$poster','$SMILIEs')";
mysql_query($query_addthread,$link) or die (mysql_error());