Fixed typo in setting SQL query