Sort:  

This is because they allow CR/LF to be inserted in the title 😡
I will update my script. Thanks for notifying @ace108, as I missed it

You'll welcome. Any tip to take care of that?

You can use REPLACE(title, CHAR(10),' ') in your queries.

Ah... thanks. I think some of the appics or actifit may be a problem.

OK, it fix the actifit but I still have other issue with appics to investigate.