In following screenshot I've query and they way I am attaching it as an expression to a textbox. The query worked fine in SQL server and return the results as required but as soon as I went for adding it as an expression to a textbox it highlight a red line underneath the field and populate that "Unknown collection member." I thing I am doing right but not sure where it is stuck.
Note: CRMAF_ is a pre-filterer for a record in dynamics CRM.