MySQL Error: INSERT INTO ms_views(tipo, id_post, count, fecha) SELECT 'pelicula', '13665', 1, '2019-02-19' FROM dual WHERE NOT EXISTS (SELECT * FROM ms_views WHERE id_post='13665' AND fecha = '2019-02-19')