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

SELECT *
  FROM piwigo_images
  WHERE id IN (46201,44848,44564,39807,38658,38617,38146,36924,36786,35977,33627,33194,32160,31582,30154,29038,28728,28577)
; 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