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.
Merge pull request #43 from mruoss/patch-1

BUG: category ids are not retrieved correctly