Query didn't work: Out of range value for column 'id' at row 1