Inner joins: allow to specify key and foreign key