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

SELECT *
  FROM piwigo_images
  WHERE id IN (658,593)
; in /var/www/vhosts/bustersoutdoorsguideservice.com/httpdocs/Holden-Beach-Guide-Service/include/dblayer/functions_mysqli.inc.php on line 845
Fatal error: Call to a member function fetch_assoc() on a non-object in /var/www/vhosts/bustersoutdoorsguideservice.com/httpdocs/Holden-Beach-Guide-Service/include/dblayer/functions_mysqli.inc.php on line 226