Fix Categories Query
The parameterized query was resulting in just the first category
getting set instead of the whole array. This fixes that.