Fixed join order with aliases