BUG: category ids are not retrieved correctly

Since we want to retrieve the id of the category, we should pass the category label. Also, $params[pjroject] is unset 3 lines above.