see attached file: in 1.1.6 you can have a label inside ert. 1.2.0 end's with ert after the label. should be converted to \label{...}
Herbert -- http://www.lyx.org/help/
#LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 218 \textclass article \language ngerman \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard THis is only ert with a label: \layout Standard \latex latex I like \begin_inset LatexCommand \label{Label} \end_inset ert and labels \the_end