Showing 1 changed files with 1 additions and 1 deletions
+1 -1
thumbnails
... ...
@@ -35,7 +35,7 @@ fi
35 35
 
36 36
 sqlcmd="select path, rotation from ${dbprefix}images \
37 37
            where id in ( \
38
-              select image_id from ${dbprefix}image_category \
38
+              select distinct image_id from ${dbprefix}image_category \
39 39
                   where category_id in ( \
40 40
                       select id from ${dbprefix}categories where dir is NULL \
41 41
                   ) \