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

SELECT DISTINCT(i.id)
  FROM piwigo_images AS i
    INNER JOIN piwigo_image_category AS ic ON i.id = ic.image_id
    INNER JOIN piwigo_categories AS c ON ic.category_id = c.id
    WHERE (ic.category_id NOT IN (55))
    ORDER BY RAND(NOW())
    LIMIT 0, 5
  ; in /var/www/vhosts/fhx-online.com/httpdocs/gallery/public/include/dblayer/functions_mysqli.inc.php on line 798
Fatal error: Call to a member function fetch_assoc() on a non-object in /var/www/vhosts/fhx-online.com/httpdocs/gallery/public/include/dblayer/functions_mysqli.inc.php on line 181