LPS-43172 The operator for tempJournalArticle.id_ should be always AND. With the previous query, in some cases (type_, structure or template are not null) could be OR
LPS-43172 Test - Modifies the test to check the query when type_ is not null