This error is dependent on error/warning level set in php.ini. Its good practice to use...
array_key_exists('id', $_GET);
http://us2.php.net/manual/en/function.array-key-exists.php
also: make sure you sanitize that input from the $_GET before you do that. You're leaving yourself open to mysql injection.