Danbooru2021
Danbooru2021 copied to clipboard
Mis-handles a leading NOT clause
If the first clause in the multi-filter is marked NOT, the query ignores the NOT.
I.e. in getImagesForTags2 the first clause is always generated as:
(select tag_id from tags where name like ?)
but when NOT is checked for the first clause, it should be:
(select tag_id from tags where name not like ?)