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

SELECT *
  FROM piwigo_images
  WHERE id IN (26008,25741,24760,24374,24039,23095,21896,20843,19784,18741,17595,16958,15243,14766,13878,13196,12683)
; in /webapp/photogallery/include/dblayer/functions_mysqli.inc.php on line 832
Fatal error: Call to a member function fetch_assoc() on a non-object in /webapp/photogallery/include/dblayer/functions_mysqli.inc.php on line 213