fix the synax error of sql