Fixed another bug in wfGeneralizeSQL()