Fix a minor logic flaw which made generated SQL not always use the source set (@ENTRY/@GUID) where it should
'@ENTRY*100+0x' is no longer replaced with '@ENTRY*100+x'