-------- DB ERROR ERRNO: 2001 --------

 ERROR: Can't create UNIX socket (24)

 LINE: 137

 FILE:/var/www/joga-joga.pl/admin/includes/functions/db.func.php

 QUERY:

 
		SELECT 
			r.reklama_ID, r.url, r.target, 
			CONCAT(o.sciezka, "/", o.nazwa) as obrazek 
		FROM 
			joga_boxy_partnerow r 
			LEFT OUTER JOIN joga_pliki AS o ON (r.obiekt_ID = o.obiekt_ID)
		WHERE
			r.status = 1 AND 
			(o.funkcja = 1 OR (o.funkcja = 0 AND o.typ = "file") ) AND 
			(CASE 1 WHEN r.pub_date != "0000-00-00 00:00:00" THEN r.pub_date <= now() ELSE true END) AND 
			(CASE 1 WHEN r.exp_date != "0000-00-00 00:00:00" THEN r.exp_date > now() ELSE true END) AND 
			r.type LIKE "button_partnerzy"
			
		ORDER BY rand() 
		LIMIT 15
	

-------- DB ERROR END --------