PPN,
I tried adding a limit, just HOPING that would work, and that still didn't seem to fix the problem.
i.e.
PHP Code:
$advert=$DB_site->query_first("SELECT * FROM ads WHERE LOCATE(CONCAT(',',forumid,','),',$foruminfo[parentlist],')>0 AND time>=".time()." AND (exposed<=exposures OR exposures=0) ORDER BY RAND() LIMIT 50");
I'm still thinking that the issue lies within the info of the table. My last entry is always garbled only in that table, no others...