I have a query that retrieves a load of sentries from a table. For each sender_email I want to retrieve according to the conditions:
sender_email
sent = f