Código SQL:
Ver originalDELIMITER $$
CREATE TRIGGER inserAsig AFTER INSERT ON envio
FOR EACH ROW BEGIN
DECLARE ide INT;
SET ide = (SELECT id_user FROM categorias AS c WHERE c.id_categoria = NEW.id_categoria );
INSERT INTO asignacion (id_user,id_categoria) VALUES(ide,NEW.id_categoria);
END ;
Unknown column 'id_categoria' in 'field list'