You actually don't need the semi-colon in the end. In fact, that is interpreted as a second empty query because \G terminates the first query.
You actually don't need the semi-colon in the end. In fact, that is interpreted as a second empty query because \G terminates the first query.