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