next_record called with no query pending: select TAG_NAME, TAG_URL_NAME, count(*) from ab_rc_tags, ab_rc_site2tags, ab_rc_site where TAG_ID = STT_TAG_ID and WWW_ID = STT_WWW_ID and WWW_BLACKLISTED = 0 and WWW_LNG_KEY = 'de' group by TAG_NAME, TAG_URL_NAME having count(*) > 2 order by 2 asc limit 0, 50