The new query doesn't filter on `message_direction`. Is this intended?

(Thanks to some excellent people on the internet who pointed that out when I asked them to lend me their SQL-fu.)