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

SELECT DISTINCT(image_id)
  FROM piwigo_image_category
    INNER JOIN piwigo_images ON id = image_id
  WHERE
    category_id = 114
AND (category_id NOT IN (60,109,5,21,73,98,19,53,105,31,71,79,84,72,57,56,30,17,104) AND level<=0)
  ORDER BY file ASC, date_available DESC, id ASC
; in /var/www/vhosts/truuuc.com/subdomains/galerie/httpdocs/include/dblayer/functions_mysqli.inc.php on line 864
Fatal error: Call to a member function fetch_assoc() on a non-object in /var/www/vhosts/truuuc.com/subdomains/galerie/httpdocs/include/dblayer/functions_mysqli.inc.php on line 925