We have created a query as follows:
FIND MessageUser WHERE MessageUser.EffectiveFrom<=CURRENT_DATE AND MessageUser.EffectiveTo>=CURRENT_DATE AND MessageUser.RegularUserID.ID=LoggedInRegularUser AND MessageUser.RegularUserID.IsActive='Yes' ORDER BY MessageUser.EffectiveFrom DESC
Each time we edit the query it puts single quotes around LoggedInRegularUser as follows:
FIND MessageUser WHERE MessageUser.EffectiveFrom<=CURRENT_DATE AND MessageUser.EffectiveTo>=CURRENT_DATE AND MessageUser.RegularUserID.ID='LoggedInRegularUser' AND MessageUser.RegularUserID.IsActive='Yes' ORDER BY MessageUser.EffectiveFrom DESC
Should this be a reserved word and not do this?
It took us a number of hours trying to work out why the query stopped after adding an attribute to the results.