Illegal query: Incorrect datetime value: '' for column 'last_viewed' at row 1