fix compatibility of criteria "IN", "NOT IN"

ref.
https://github.com/XoopsX/legacy/commit/32edb985ac4d334edd044123049dab230fb7809c#commitcomment-2591321