Following this question, I've been trying to mimic the correct answer to insert data in my table only if it is empty.
Execute INSERT if table is empty?
This is my code:
INSERT INTO `statuses` SELECT
('Something', 'Something else', 123),
('Something', 'Something else', 234)
WHERE NOT EXISTS (SELECT * FROM `statuses`);
But instead of adding the elements if the table is empty, I just get:
#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 NOT EXISTS (SELECT * FROM `statuses`)'
How exactly am I supposed to write the query so that the values are inserted only if the table is empty?