These are the only difference in the coding. First set of codes run fine, Second shows the field is not known error. Both code runs properly in the query analyzer. not sure