Error raised with simple use of id instead of $id