you needded to add a group by clause. I added:
GROUP BY categoriesFull.CategoryID
to the recordset.
the text was showing %20 because you where using rawurlencode():
<?php echo(rawurlencode($row_WADAlodges['Category'])); ?>
i changed that to:
<?php echo($row_WADAlodges['Category']); ?>