syntax error: update table_library SET viewed=1 where id=