Howdy all.

Since upgrading to 6.3, my custom fields used in an SQL statements produce errors.

e.g.

When running an insert statement, where ever I have used a custom field variable i get something like the following:
'* Field TicketTitle Error *
* Field AgentName Error *
* Field MachineGroupGuid Error *
I have approved all my SQL commands (e.g copied the statement into the new xml files)

Has something changed with the custom fields that would cause this?
Or do I need to format the variable differently in the XML files containing the sql statements? 
Any help?

Edit.
Just thought I would mention, my variables are constructed as follows: [$AgentName$]


[edited by: Divvet at 6:03 AM (GMT -8) on Feb 1, 2013] forgot something