Fixed a bug in SQL statement