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

SELECT data
  FROM piwigo_sessions
  WHERE id = '3651ld1iiek1n2ooviubpba07l5vl7'
; in /var/www/vhosts/trinscript.fr/unionregio.eu/piwigo/include/dblayer/functions_mysqli.inc.php on line 845
Warning: [mysql error 145] Table './unionregio/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 1 = 1 AND date_creation IS NOT NULL
    GROUP BY period
    ORDER BY YEAR(date_creation) DESC, MONTH(date_creation) ASC in /var/www/vhosts/trinscript.fr/unionregio.eu/piwigo/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/trinscript.fr/unionregio.eu/piwigo/include/dblayer/functions_mysqli.inc.php on line 226
Warning: [mysql error 145] Table './unionregio/piwigo_sessions' is marked as crashed and should be repaired

REPLACE INTO piwigo_sessions
  (id,data,expiration)
  VALUES('3651ld1iiek1n2ooviubpba07l5vl7','pwg_device|s:7:\"desktop\";pwg_mobile_theme|b:0;',now())
; in /var/www/vhosts/trinscript.fr/unionregio.eu/piwigo/include/dblayer/functions_mysqli.inc.php on line 845