Show messages from ID doesnt work when message contains "[text]". For database statement opening [ needs to be [[].
After replace ' might turn into '', so prevent this with replace.

Now messages can be listed and deleted in groups