How to select multible rows in a table

Of course you can filter a query using an array with multiple IDs.
Once you filter the query add the records to an array and use the array value in the email body.
Check the docs about using arrays in server connect: