Judge in hot water with Derbyshire town over 'derogatory' remark