Landlord to pay out nearly £40k after breaches of multiple occupation law