Database error

ERROR From DB mySQL

DB Error: Database query failed!
» Error No: 1194
» Error detail: Table 'bd_estore_online_users' is marked as crashed and should be repaired
» Query: SELECT * FROM bd_estore_online_users WHERE store_id = '1026' AND uid='0' AND usertype='0' AND ip='54.167.86.132' Database error

ERROR From DB mySQL

DB Error: Database query failed!
» Error No: 1062
» Error detail: Duplicate entry '1077365' for key 'PRIMARY'
» Query: INSERT INTO bd_estore_online_users (id,store_id,sid,uid,username,usertype,ip,last_updated,last_page) VALUES (NULL,'1026','5c5t3du4l98tm4b6brdj57i8e2','0','Guest','0','54.167.86.132','2016-05-04 06:51:49','/post/1026/302225')