IN () produces SQL error