Fixed JoinSqlBuilder to use field Aliases

The SQL generated by the JoinSqlBuilder class was ignoring field aliases.