220 quick fix

This doesn't really answer the questions raised by this bug about inferring types for identifiers that appear more than once in a query, but it does fix this particular case.