I have a query called getClaimIDs that gets ID's from a one table based on specific WHERE conditions. I want to take the output of this query and apply it to a different one in the format of the screenshots below. In both situations, I run into different errors.
In the case where my output is of type array, the query runs into errors because each element in the array is wrapped by double quotes instead of single quotes.
If I transform the results to fit that format, the output is of type string and I run into errors since the whole string is wrapped by double quotes.
Ultimately, I want it to be in this format but not hard-coded:
What can I do?