Warning: [mysql error 145] Table './gal/gal_images' is marked as crashed and should be repaired SELECT DISTINCT(id) FROM gal_images INNER JOIN gal_image_category AS ic ON id = ic.image_id WHERE date_available>=LEAST(SUBDATE(CURRENT_DATE,INTERVAL 7 DAY),SUBDATE('2021-09-22 16:41:57',INTERVAL 1 DAY)) ORDER BY date_available DESC,date_available DESC, file ASC, id ASC ; in /www/include/dblayer/functions_mysqli.inc.php on line 856

Fatal error: Uncaught Error: Call to a member function fetch_assoc() on boolean in /www/include/dblayer/functions_mysqli.inc.php:917 Stack trace: #0 /www/include/section_init.inc.php(455): query2array('\nSELECT DISTINC...', NULL, 'id') #1 /index.php(19): include('/www/include/se...') #2 {main} thrown in /www/include/dblayer/functions_mysqli.inc.php on line 917