The second ticket indicates that you did not stop before you turned right. Since it is red light, even you can make right turn when there is no through traffic, you have to make a stop first (like a STOP sign).