Unable to find .

SELECT * FROM jny_subdomains WHERE name = 'romania' AND e.is_planned = 0 AND e.dt >= '2019-10-1' AND e.dt < ('2019-10-1' + interval 1 month) ORDER BY e.dt LIMIT 0,20

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