Thanks, this is the error thats displayed when debug is enabled:
We're sorry, but the system experienced an unrecoverable error. Please try again later.
Query: SELECT userid,date,photo FROM pics_ipcache WHERE ipaddr='220.127.116.11' AND type='view' AND photo=26822 LIMIT 1
Result: Table 'pics_ipcache' is marked as crashed and should be repaired
Database handle: Resource id #44