Warning: [mysql error 145] Table './apphotos/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 (123,230,224) AND i.level<=0) ORDER BY RAND(NOW()) LIMIT 0, 10 ; in /var/www/html/photos/include/dblayer/functions_mysqli.inc.php on line 856

Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in /var/www/html/photos/include/dblayer/functions_mysqli.inc.php:917 Stack trace: #0 /var/www/html/photos/include/functions.inc.php(1538): query2array('\r\nSELECT DISTIN...', NULL, 'id') #1 /var/www/html/photos/plugins/PWG_Stuffs/modules/Random/main.inc.php(48): array_from_query('\r\nSELECT DISTIN...', 'id') #2 /var/www/html/photos/plugins/PWG_Stuffs/class.inc.php(106): include('/var/www/html/p...') #3 /var/www/html/photos/plugins/PWG_Stuffs/class.inc.php(36): stuffs->process_modules() #4 /var/www/html/photos/plugins/PWG_Stuffs/main.inc.php(53): stuffs->__construct() #5 /var/www/html/photos/include/functions_plugins.inc.php(264): load_stuffs() #6 /var/www/html/photos/index.php(28): trigger_notify('loc_begin_index') #7 {main} thrown in /var/www/html/photos/include/dblayer/functions_mysqli.inc.php on line 917