If you have to retain the data structure you have here, are you able at all to change the end delimiters on the numbers? For example, if you changed |6,8,9,22,45,77| to ,6,8,9,22,45,77, you can then just do this:
$GetContact = "SELECT * FROM stock WHERE sub_categories LIKE ',$description,'";
where description is your number.
Also, just to point out, you don't need to break out of your string if you're using double quotes. Double quotes in PHP tells PHP that any variables in string are parsed as variables and not just text.