Invalid query: Duplicate entry '99' for key 1