SELECT setting,settingValue FROM #r['tableprefix']#settings