Fix a typo in sql.py