A 37-year-old woman who took a young boy to a post-Southport riot which saw an arson attack on a hotel has been jailed for more than two years.