Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/virtual/site95/fst/var/www/html/classes/MySQLdb.class.php on line 23

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/virtual/site95/fst/var/www/html/classes/MySQLdb.class.php on line 29

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/virtual/site95/fst/var/www/html/classes/MySQLdb.class.php on line 30
Error:

En el query:
SELECT pc.*, (SELECT COUNT(*) FROM mrp_productos WHERE fk_id_mrp_productos_categorias = pc.id_mrp_productos_categorias AND habilitado = 1 AND borrado = 0)AS total FROM mrp_productos_categorias pc WHERE pc.borrado = 0 AND pc.habilitado = 1 ORDER BY nombre_en ASC