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

  SELECT DATE_FORMAT(date_creation, '%Y%m') as period,
    COUNT(distinct id) as count FROM piwigo_images
INNER JOIN piwigo_image_category ON id = image_id
    WHERE (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) AND date_creation IS NOT NULL
    GROUP BY period
    ORDER BY YEAR(date_creation) DESC, MONTH(date_creation) 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 228