diff --git a/aivo/aivo_get_subjects.m b/aivo/aivo_get_subjects.m
index 6ad90cb73ab0b1b35a720853a0c6df8185109858..4f3bee95a3f29a33c6e5f033134306f5cb8bb252 100644
--- a/aivo/aivo_get_subjects.m
+++ b/aivo/aivo_get_subjects.m
@@ -53,7 +53,7 @@ if((~mod(nargin,2)))
         value = varargin{i+l+1};
         l=l+1;
         % Materia view - Values
-        if(ismember(field,{'study_date','mri_code','dose','scan_start_time','injection_time','height','weight','age'}))
+        if(ismember(field,{'study_date','dose','scan_start_time','injection_time','height','weight','age'}))
             if(ischar(value)) %only one value
                 if(ismember('~',value))  %exclude spesific value
                     where_statement = [where_statement,' NOT ','materia.',lower(field),' = ',char(39),value(2:length(value)),char(39)];
@@ -84,7 +84,7 @@ if((~mod(nargin,2)))
                         where_statement = [where_statement,' AND '];
                     end
                  else % excluding the exact value/s
-                    where_statement = [where_statement,' NOT ','materia.',lower(field),' = ',char(39),value(2:length(value)),char(39)];
+                    where_statement = [where_statement,' NOT ',' materia.',lower(field),' = ',char(39),value(2:length(value)),char(39)];
                     if(i~=nargin/2)
                         where_statement = [where_statement,' AND '];
                     end  
@@ -145,4 +145,4 @@ refresh_cmd = 'REFRESH MATERIALIZED VIEW aivo2.materia';
 curs = exec(conn,refresh_cmd);
 close(curs);
 
-end
\ No newline at end of file
+end