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