Update library/Zend/Db/Sql/Select.php

reset join alias (otherwise it uses the alias defined in the previous iteration)