Errore MySQL:
SELECT * FROM adv_campaigns WHERE (idstatus=1) AND (credits>0) AND ((day_start<=05) AND (day_end>=05)) AND ((month_start<=02) AND (month_end>=02)) AND (idtype=1) AND (idtarget=) ORDER BY RAND() LIMIT 0,1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY RAND() LIMIT 0,1' at line 5