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