Stats error: Incorrect integer value: '' for column 'id' at row 1