Supposed I have a table SomeTable with a single INT column.
This query works fine:
INSERT INTO SomeTable
(SELECT 1 WHERE true)
UNION
(SELECT 2 FROM SomeTable WHERE true)
But this gives a syntax error:
INSERT INTO SomeTable
(SELECT 1 WHERE true)
UNION
(SELECT 2 WHERE true)
Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE true)' at line 4
What's the cause of the error?
How else would I insert multiple rows with a WHERE filter?

Your parenthesis causes the problem. :