Use WT_DBStatement->fetchOne() in preference to PDOStatement->fetchColumn() - following webtrees-base.