Hi Slimdave,
In the Case 2, LYENTITY is being referenced twice, seemingly without reason.

Thanks
Manjuanth