bug 1076270 - fix typo in SQL