$threadinfo = $DB_site->query_first(" SELECT *, NOT ISNULL(deletionlog.primaryid) AS isdeleted
if (!$pollinfo['public'] AND $public) $public = 0;