fix reading by key bug

that prevented certain keys to be found in queries like
SELECT .. FROM .. WHERE .. IN (..)