Replace 'LEFT JOIN' by 'JOIN' in sql requests on errors page, as we want valid datas on template page