fix err in sql command