I\'m getting an error while running the following sql query to make some geometry valid. I can\'t figure out what is causing this. Any help appreciated.
Query