select o.docid,o.issid,o.docvid,o.docnumber,DATE_FORMAT(o.docdate,'%d.%m.%Y'),o.doctitle,o.issdiv,o.arclnumber,DATE_FORMAT(o.docdate,'%d.%m.%Y') from oglav o where o.issid='1002008016000' and o.issdiv=4 and o.isspart=2 order by issid desc,docorder asc: Table 'oglav' is marked as crashed and should be repaired