Knowledge Base Error

I posted an article in the KB on my test board and on submission, I got a headers already sent error in functions.php. I checked the file for a white space before and after the phptags and I found none. I figured that might be the cause since that is normally the cause of the headers error.
Then after I got that error, it immediately kicks me over to another page that shows a sql error.
[img]http://www.thunderva.com/images/kberror.jpg[/img]
I then went back and posted another one. This time I did not receive a headers error, but it did forward me to the posted pic page again.
Then after I got that error, it immediately kicks me over to another page that shows a sql error.
[img]http://www.thunderva.com/images/kberror.jpg[/img]
I then went back and posted another one. This time I did not receive a headers error, but it did forward me to the posted pic page again.