Farrells Fancy was all out to land the spoils in a highly competitive renewal of the valuable Leopardstown Handicap Chase.
Terence O'Brien's charge (9-1) was always prominent and led before the second-last, although the Willie Mullins-trained Sweet My Lord looked to be travelling like a winner when he fell at the final fence.
Farrells Fancy was treading water in the final strides, but 5lb claimer Mark Enright held him together to hold the late bid of Sweeney Tunes by a head, with Klepht third and Carlingford Lough fourth.
O'Brien said: "In fairness to the horse, we always thought there was a big prize in him.
"We very nearly didn't run today because I just thought he doesn't really like heavy ground. It was touch and go whether we'd run or not, it was only on the toss of a coin really that we ran.
"He had bits of problems as he got a stress fracture, but he gives everything."
Enright added: "He was keen all the way, he was running away from me for most of the race and I just had to keep bringing him back.
"Going to the second-last, I let him roll and he winged it and got a good jump at the last. I had to give it hell for leather from the last as he just idled on the way to the line."