Add missing character in sql statement