Warning: [mysql error 145] Table './photogallery/piwigo_images' is marked as crashed and should be repaired
SELECT DISTINCT id  FROM piwigo_images
INNER JOIN piwigo_image_category ON id = image_id
WHERE category_id IN (1222)
   AND date_available BETWEEN '2017-03-28' AND '2017-03-28 23:59:59'
  ORDER BY date_available ASC, rank ASC, date_creation DESC, id ASC in /webapp/photogallery/include/dblayer/functions_mysqli.inc.php on line 832
Fatal error: Call to a member function fetch_assoc() on a non-object in /webapp/photogallery/include/dblayer/functions_mysqli.inc.php on line 893