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

SELECT data
  FROM photo_sessions
  WHERE id = '12CErvcg9l2k1ga6t0e6g8m9oq3jf1'
; in E:\Web\ncp\photo\include\dblayer\functions_mysqli.inc.php on line 864
Fatal error: Call to a member function fetch_assoc() on boolean in E:\Web\ncp\photo\include\dblayer\functions_mysqli.inc.php on line 228
Warning: [mysql error 145] Table './photo/photo_sessions' is marked as crashed and should be repaired

REPLACE INTO photo_sessions
  (id,data,expiration)
  VALUES('12CErvcg9l2k1ga6t0e6g8m9oq3jf1','',now())
; in E:\Web\ncp\photo\include\dblayer\functions_mysqli.inc.php on line 864