initial ticket sync query now correct