join(var, alias, tableName, true);
}
private void join(ColumnVar var, String alias, String tableName, boolean left) {
if (query.getFromItem(alias) == null) {
FromItem valueJoin = valueJoin(alias, tableName, var, left);
if (join == parent || join.getFromItem(var.getAlias()) != null) {
join.addJoin(valueJoin);
}
else {
parent.addJoinBefore(valueJoin, join);