A Durham landlord has been given a suspended prison sentence following his failure to maintain or check the gas fittings in one of his properties.