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

SELECT *
  FROM pg_images
  WHERE id IN (223,172,121,89,19,1)
; in /home/amskxx/domains/amateurseks.xxx/public_html/include/dblayer/functions_mysqli.inc.php on line 845
Fatal error: Call to a member function fetch_assoc() on a non-object in /home/amskxx/domains/amateurseks.xxx/public_html/include/dblayer/functions_mysqli.inc.php on line 226