modified sql to be consistent with zfcUser