Cloning the query was a bad idea