Fix clear reputation system - sql error