Livingston will have to fight for Championship survival in the play-offs after defeat by Queen of the South ensured they will finish second bottom.
Sam Stanton's left-foot shot gave Livi the lead in the first half.
Derek Lyle levelled from the penalty spot on the hour after Morgyn Neill had fouled Iain Russell and Lyle then scored with a header.
Gary Oliver struck Queens' third and the hosts had substitute Lewis Kidd sent off for two bookings near the end.
Queen of Sth
- 22HooperSubstituted forKiddat 56'minutesBooked at 84mins
- 6HigginsBooked at 53mins
- 15TappingBooked at 40mins
- 11RussellSubstituted forHarrisat 66'minutes
- 9LyleSubstituted forJacobsat 74'minutes
- 3LongridgeBooked at 48mins
- 30TelferSubstituted forSheerinat 60'minutes
- 8FotheringhamBooked at 88mins
- 7PittmanSubstituted forMullenat 77'minutes