we\'re currently setting up out integration server and during that process we\'ve set up pre-commit hooks on the SVN so that our developers can\'t check in files that are syntac
The commercial version of MySQL Workbench has a syntax checker for MySQL statements, but of course that would only cover the database aspects. See http://mysql.com/products/workbench/ (though I found the factoid in the help index for the free app).