On word problems in Horn theories