The statement output makes it clear that you constructed 3 SQL statements, not 1. This means that you would need to use a semi-colon to terminate each SQL statement. However, more likely you want to construct 1 SQL statement:
INSERT INTO UsersAnswers( QuizID, UserID, question_ID, answers )
VALUES ('17', '22', '24', '0'), ('17', '22', '23', '0'), ('17', '22', '20', '0')
either that, or use prepared statements.