select * from tbl_SYS_AnomalyStatus with (nolock) where ownerType = and ownerId = and status = and ( hidden = 'N' or coalesce( hidden, '' ) = '' ) order by anomalyTitle