Fix error printing category full_slug in PHP 5.3

PHP 5.3 was not able to dynamically grab the full_slug and return the
first item of the array. Fix it by first loading result into a variable
and printing the first item of the array.