The point I was trying to make here was to show you how to use single and double quotes. http://php.net/manual/en/language.types.string.php
The variable $id is not expanding and hence you are facing problem with the id value that you are trying to pass. Read the above link to know more on what I am talking about.