LPS-42200 alter the JournalStructure prepared statement with

concatenated where clause to a parameter binding statement

Tested with a build from master branch. Solves the issue described in Jira LPS-42200.