fix mistype in SQL qurey