MySQL Error: INSERT INTO ms_views(tipo, id_post, count, fecha) SELECT 'capitulo', '15044', 1, '2019-04-25' FROM dual WHERE NOT EXISTS (SELECT * FROM ms_views WHERE id_post='15044' AND fecha = '2019-04-25')