SELECT id AS Code, name AS Name, CONCAT('/store/cat/14/', replace(replace(replace(replace(replace(replace(replace(replace(id, ' ', '+'), '!', '%21'), "'", '%27'), '-', '%2D'), '/', '%252F'), '(', '%28'), ')', '%29'), '&', '%26'), '/WETSUITS/', replace(replace(replace(replace(replace(replace(replace(replace(name, ' ', '+'), '!', '%21'), "'", '%27'), '-', '%2D'), '/', '%252F'), '(', '%28'), ')', '%29'), '&', '%26')) AS URL FROM classes WHERE web = 1 AND department = '14' ORDER BY Name