```SELECT DISTINCT custrecord_employee, id FROM cu...
# suiteql
n
Copy code
SELECT DISTINCT custrecord_employee, id FROM customrecord_update_queue ' +
      'WHERE custrecord_status is Pending'
What's wrong with this query?
r
You would need quotes around Pending. If the status field is a select field you would also need to either surround it with BUILTIN.DF or use the internal id of the list value. Also, I don't believe you can use is like that, it should be an = sign.
something like this
Copy code
SELECT DISTINCT custrecord_employee, id FROM customrecord_update_queue
      WHERE BUILTIN.DF(custrecord_status) = 'Pending'
n
Thank you. That worked @Richard Tanner
= sign and " " was the issue.