Correctly quote fk lookups.