MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'industry=NULL,annual_revenue=NULL,phone_fax=NULL,billing_address_street=NULL,bil' at line 2

.I have module called accounts where I Have 5 address fields I have made validation by creating a validate.js file in accounts/module/validate.js and giving this path in editviewdefs.php in custom/accounts/metadata/editviewdefs.php all validation is working fine.My problem if any one textfield is filled and other 4 left empty.It must not submit the form after clicking Save Button and Infact I have tried out in Many ways i.e returning false or by adding event.default in my jquery function but it is not working can you please help me out to stop this form submission if text field left empty.