The LD error code on a Maytag washing machine means stopped up or slow drain pump in the washing machine.
The LD stands for long draining and means that the washing machine is taking too long to drain the water fully from the washing machine drum.
The hoses will need to be removed from the drain pump to clear the clog if there's a clog or your drain pump could be failing.