-------- DB ERROR ERRNO: 1135 --------

 ERROR: Can't create a new thread (errno 35); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug

 LINE: 137

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

 QUERY:

 
		SELECT *
		FROM joga_reklamy
		WHERE
			status = 1 AND
			(CASE 1 WHEN pub_date != "0000-00-00" THEN pub_date <= now() ELSE true END) AND
			(CASE 1 WHEN exp_date != "0000-00-00" AND exp_date != "" THEN exp_date > now() ELSE true END) AND
			image_url != "" AND
			url != "" AND
			placement = "A1"
		ORDER BY RAND()
		LIMIT 1
		

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