Although #64388 is not applicable here, a db_rewrite_sql() was missing from the counter query on the poll page, so fixed that