1053 - Server shutdown in progress

select ra.relatedarticleid as relatedarticleid, p.uid as articleid, p.alphabeticalnameplain as articletitle, 'People' as articletype, 1 as articletypeid from relatedarticle ra inner join people p on ( ( ra.sourcearticleid = 1700 and ra.targetarticleid = p.uid and ra.sourcearticletypeid = 3 and ra.targetarticletypeid = 1 ) or ( ra.sourcearticleid = p.uid and ra.targetarticleid = 1700 and ra.sourcearticletypeid = 1 and ra.targetarticletypeid = 3 ) ) union select ra.relatedarticleid as relatedarticleid, t.uid4 as articleid, t.headword4 as articletitle, 'Context' as articletype, 2 as articletypeid from relatedarticle ra inner join topicsa t on ( ( ra.sourcearticleid = 1700 and ra.targetarticleid = t.uid4 and ra.sourcearticletypeid = 3 and ra.targetarticletypeid = 2 ) or ( ra.sourcearticleid = t.uid4 and ra.targetarticleid = 1700 and ra.sourcearticletypeid = 2 and ra.targetarticletypeid = 3 ) ) union select ra.relatedarticleid as relatedarticleid, w.uid2 as articleid, concat(concat_ws(', ', p.surname, p.forenames), ' - ', w.Headword2) as articletitle, 'Works' as articletype, 3 as articletypeid from relatedarticle ra inner join works w on ( ( ra.sourcearticleid = 1700 and ra.targetarticleid = w.uid2 and ra.sourcearticletypeid = 3 and ra.targetarticletypeid = 3 ) or ( ra.sourcearticleid = w.uid2 and ra.targetarticleid = 1700 and ra.sourcearticletypeid = 3 and ra.targetarticletypeid = 3 ) ) left join people p on w.authoruid = p.uid ORDER BY articletypeid, articletitle