Warning: [mysql error 145] Table '.\piwigo\piwigo_images' is marked as crashed and should be repaired

SELECT
    author,
    id
  FROM piwigo_images AS i
    JOIN piwigo_image_category AS ic ON ic.image_id = i.id
   WHERE  (category_id NOT IN (363,359,360,362,137,136,135,134,40,306,305,205,320,319,34,323,339,321,95,93,149,148,91,90,333,332,331,87,85,84,335,185,183,82,300,299,298,79,297,296,295,78,294,293,292,291,289,189,188,74,288,287,286,73,285,284,283,282,280,71,278,277,276,110,275,274,273,272,271,269,68,268,267,266,66,265,264,262,263,65,261,260,259,64,258,257,256,255,180,182,60,253,252,177,251,250,27,246,245,26,244,243,242,25,241,240,239,24,238,237,236,235,234,22,232,231,230,21,229,228,227,225,224,190,164,163,176,175,174,223,222,15,220,219,218,14,217,216,215,171,170,161,168,166,10,214,213,212,211,210,9,129,130,131,132,125,127,121,122,123,124,8,117,118,119,7,114,115,116,109,112,113,6,107,108,4,100,102,5,86,88,94,3,67,70,76,80,53,54,55,56,57,61,1,45,46,47,48,49,50,51,52,41,42,43,44))
    AND author IS NOT NULL
  GRO in D:\playersweb\piwigo\include\dblayer\functions_mysqli.inc.php on line 832
Fatal error: Call to a member function fetch_assoc() on a non-object in D:\playersweb\piwigo\include\dblayer\functions_mysqli.inc.php on line 213