[z1817] Fix error in SQL file. Thanks cala for reporting