My god!!! Who built your database?
It is extreemly bad form to have a table that size, it becomes unwieldly for someone to write queries againt (as you are finding out). Besides that it doesn't look like you are validating any of the data in your variables, if that data is comming from the user then you need to make sure you "escape" all of the string values so that a stray ", or more likely a deliberate attack, doesn't screw up the formatting of your query and or mess up your database.