Ok so I tested it again. Still getting the "You don't have any messages at the moment!"
Is this a system that only works when someone queries you? Or your bot?
The insufficient parameters changed from line 39 to line 40 now.
I see you detailed what this script does but you should detail how it works so people have a better understanding of where the messages come from (I.E. Queries, other channels, highlighted names, etc).