Some MySQL syntax errors have been corrected