escape ID before querying for it