Fix typo in last 5 messages query