My SQL Errors Debug..

MySQL Error:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
Query Result:select * from adv where N_YN = 1 and (N_ST <= '2017-11-24' and N_ET >= '2017-11-24')