stupidest query

you can write it in a single line for more performance
PHP Code:
if(@JobID = '33838') -- Pk Remover
begin
Update _Char Set DailyPK = 0,TotalPK = 0,PKPenaltyPoint = 0 Where CharID = @CharID
end
also unknown skill means that your skill line has been deleted from _CharSkill
you can find it at _RefCharDefault_Skill, add it back to _CharSkill.