Offending SQL query

Error Message

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) (#2002)