select count(*) from type where grp='attconfig' and code='L' and etc=1 query failed: