Incorrect integer value: '' for column 'type' at row 1