Man jailed after ‘wholly terrible’ attack at Knaresborough pub