select * from type where grp='stureg_setting' and val=1 and (sid='' or sid=0) failed: