-------- DB ERROR ERRNO: 1045 --------

 ERROR: Access denied for user 'cancer'@'localhost' (using password: NO)

 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 --------