the sql/mysql/upgrades file has the schema and inserts for the badge_ids table. but the default schema when you do an install doesn't have it.
# For badges
CREATE TABLE badge_ids (
badge_id tinyint UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
badge_text varchar(32) NOT NULL DEFAULT '',
badge_url varchar(255) NOT NULL DEFAULT '',
badge_icon varchar(32) NOT NULL DEFAULT ''
) TYPE=InnoDB;
It was added to the upgrades file in T_2_5_0_150. This'd be an easy fix.
patch to fix this
Logged In: YES
user_id=52587
Originator: YES
File Added: slashcode-bug-1769272.patch.txt