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

SELECT * FROM photo_images
  WHERE id=9992
; in E:\Web\ncp\photo\include\dblayer\functions_mysqli.inc.php on line 856
Fatal error: Call to a member function fetch_assoc() on boolean in E:\Web\ncp\photo\include\dblayer\functions_mysqli.inc.php on line 220