Fixed SQL error in applicationGetKeywords