Fixed one bug in SQL string.