diff --git a/src/main/resources/sql/api/searchMedia.sql.st b/src/main/resources/sql/api/searchMedia.sql.st index 374f175..213f49e 100644 --- a/src/main/resources/sql/api/searchMedia.sql.st +++ b/src/main/resources/sql/api/searchMedia.sql.st @@ -41,7 +41,7 @@ where media.image_url is not null and media.created_date_time \<= :toDate and (%' or media.subject_middle_name ilike '%%' or media.subject_last_name ilike '%%') - }; separator="\n OR ">) + }; separator="\n AND ">) and media.subject_type_name in (:subjectTypeNames) and media.program_name in (:programNames)