Почем выдаёт ошибку?
INSERT INTO post_votes (POST_ID, USER_ID, TYPE)
VALUES (12,32,'+') WHERE NOT EXISTS (SELECT USER_ID, POST_ID
WHERE ((USER_ID=32)AND(POST_ID=12)))
ВЫдаёт ошибку: #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 USER_ID, POST_ID WHERE ((USER_ID=32)AND(POST_ID=12)))' at line 2