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

SELECT USER_ID, PREFERRED_LANGUAGE_ID FROM individual_user WHERE EXTRANET_USERNAME='tierrab' AND IS_GROUP='1' AND IS_WEBCONF_PARTNER = 0 AND ACTIVATE_EXTRANET =1;