OK...I found the problem...in the if statement I missed the dollar sign ($) when changing over the variable names to make them easier to read
it should be:
PHP Code:
if ($subscribed_id>0)
Note the dollar sign before "subscribed_id" now...before it didn't have it on the original post so it never satisfied the condition.
I'll fix the original post so it's updated too.
LMK if it works now...must have been a long day when I missed that one