Open your queryobj.php file and change the setting for Debug to true instead of false. That should show you a better error message. It may be a required field is not being included in the insert. By turning on debug it will give you the full error message and help you determine the cause and solution.