private void rewriteFromAliases(SelectFromWhere<?> toMerge, From oldFrom, From newFrom)
{
for (Expression expr: toMerge.cols.columns)
{
expr.visit(new RecursiveExpressionVisitor() {
@Override
public void visitFromAlias(FromAliasExpression expr)
{
if (expr.from == oldFrom)
expr.from = newFrom;