DNN-4301 Optimize Helper Function GetProfileFieldSQL