fixed error in SQL syntax