Thiruvananthapuram: The by-elections held in 31 local body wards across Kerala resulted in a significant setback for the LDF.