WHERE message_transport_type = ?
AND borrowernumber = ?
AND letter_code = ?
AND CAST(time_queued AS date) = CAST(? AS date)
AND CAST(time_queued AS date) = CAST(NOW() AS date)
AND status="sent"
|, {}, $message->{message_transport_type}, $message->{borrowernumber}, $message->{letter_code}, $message->{time_queued} );
|, {}, $message->{message_transport_type}, $message->{borrowernumber}, $message->{letter_code} );
return $count;
}
-