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

SELECT DISTINCT(id)
  FROM piwigo_images
    INNER JOIN piwigo_image_category AS ic ON id = ic.image_id
  WHERE date_available>=LEAST(SUBDATE(CURRENT_DATE,INTERVAL 7 DAY),SUBDATE('2015-03-25 22:14:18',INTERVAL 1 DAY))
  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 date_available DESC,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