Fixed issue that was preventing ability to join one column multiple times.

Since joinName is generated using base entity and related entity in case of joining same table several times generated query was not correct. Prefixing joinName with field seems to fix this problem.