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

ref.
https://github.com/XoopsX/legacy/commit/32edb985ac4d334edd044123049dab230fb7809c#commitcomment-2591321
Merge pull request #71 from nao-pon/fix_criteria

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