ticket subject sql fix