i think your a little confused ....
chmod is short for "change mode" it basically sets folder/file permissions allowing you to read/write etc to a file/folder
.htaccess is short for "hypertext access", this is a configuration file that allows you management over your sever
and finally mysql is short for "My Structured Query Language" which is a database management system.
Now if your script is telling you have got a mysql error and you say it is case 14 then you need to work your way back to find out what the "IF Statement" is that is causing case 14 to return.
at a guess i would say it is either a mis-configured database settings or a missing $_POST or $_GET causing the mysql query to be comparing an unset variable