Merge pull request #1455 from graciani/bug_fix_v6r7

BUGFIX (v6r7): missing () in IN selection
v6r7p28
FIX: exit with -1 on Error
Merge remote-tracking branch 'upstream/rel-v6r7' into bug_fix_v6r7