Warning: file_put_contents(/var/www/123-parking/_errors/errors_mysql.txt) [function.file-put-contents]: failed to open stream: Permission denied in /var/www/123-parking/inc/classes/mysql.class.php on line 431

The SQL:
SELECT GeoHitID FROM domains_hits_log WHERE GeoHitDomainID=50379 && GeoHitHash='9ecb07524c8a4a2e0e9d1e9b56e9cbad' && ( GeoHitTime > DATE_SUB( '2012-05-19 21:49:00', INTERVAL 20 MINUTE ) || GeoHitTimeLast > DATE_SUB( '2012-05-19 21:49:00', INTERVAL 20 MINUTE ) ) ORDER BY GeoHitTime DESC LIMIT 1

Produced the error:
Table './123_parking_plat/domains_hits_log' is marked as crashed and last (automatic?) repair failed

Warning: file_put_contents(/var/www/123-parking/_errors/errors_mysql.txt) [function.file-put-contents]: failed to open stream: Permission denied in /var/www/123-parking/inc/classes/mysql.class.php on line 431

The SQL:
SELECT dp_update_hit( '9ecb07524c8a4a2e0e9d1e9b56e9cbad', 50379, 13, '2012-05-19 21:49:00', '2012-05-19 21:49:00', 'us', '2012-05-19', 20356, 27707 ) AS LastInsID

Produced the error:
Table './123_parking_plat/domains_hits_log' is marked as crashed and last (automatic?) repair failed

Fatal error: Function name must be a string in /var/www/123-parking/inc/functions/parking.functions.php on line 168