The wrong query result was returned when joining on the rowID and having extra conditions. The logic has been changed to correct this.
TOCIndex