Couldn't connect to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Software error:

Can't call method "prepare" without a package or object reference at /home/analisis/public_html/binationalmagazine/bin/videos.cgi line 95.

For help, please send mail to the webmaster (webmaster@binationalmagazine.analisisdoctrinal.com), giving this error message and the time and date of the error.