Fixes: U4-5566 Quite a few hard coded queries with incorrect escape syntax for mysql