Exception in gitlab Check

Getting this exception when using : sudo gitlab-rake gitlab:check SANITIZE=true to check gitlab

Exception: PG::UndefinedColumn: ERROR: column “ghost” does not exist
LINE 1: …users" WHERE (“users”.“state” IN (‘active’)) AND (ghost IS N…