Android: SQL - code behaving differently
===

I am trying to search one table for all values in rows with the same `name`, and then place them into another table.

I have done this successfully in another part of my application, and have modeled this code after the working code, but for some reason it will not work.  It only moves one value from table to table.

I have checked that the table it is taking from, `DATABASE_FAV_EQUIP_TABLE`, has more than one row in it.

HERE IS THE CODE THAT IS NOT WORKING:

    //takes all equip data from saved equip set, and puts into equip table
	public String AddSavedEquipToEquipTable(String name) {
			// TODO Auto-generated method stub
			String[] columns = new String[]{KEY_EQUIP, KEY_FAVNAME};
			ContentValues cv = new ContentValues();
			Cursor c = ourDatabase.query(DATABASE_FAV_EQUIP_TABLE, columns, KEY_FAVNAME + "='" + name + "'", null, null, null, null);
			
			if (c == null){
				return null;
			}
			else if(c != null && c.moveToFirst()) {
		        do {
		            int iEquip = c.getColumnIndex(KEY_EQUIP);		            

		            String equipment = c.getString(iEquip);
		            
		            cv.put(KEY_EQUIP, equipment);
		            ourDatabase.insert(DATABASE_EQUIP_TABLE, null, cv);
		            
		            } while (c.moveToNext() && KEY_FAVNAME == name);
		        }
			
			
			return null;
		}


HERE IS THE CODE THAT IS WORKING IN ANOTHER PART OF MY APPLICATION:

    //takes all rows in chest table and puts them into the chosen equipment database
	public String AddToEquipmentDBFromChest(String equip) {
		// TODO Auto-generated method stub
		String[] columns = new String[]{KEY_REPS, KEY_EXERCISE, KEY_TIMETYPE};
		ContentValues cv = new ContentValues();
		Cursor c = ourDatabase.query(DATABASE_CHESTTABLE, columns, KEY_EQUIP + "='" + equip + "'", null, null, null, null);
		
		if (c == null){
			return null;
		}
		else if(c != null && c.moveToFirst()) {
	        do {
	            int iReps = c.getColumnIndex(KEY_REPS);
	            int iExercise = c.getColumnIndex(KEY_EXERCISE);
	            int iTimeType = c.getColumnIndex(KEY_TIMETYPE);

	            String reps = c.getString(iReps);
	            String exercise = c.getString(iExercise);
	            String time = c.getString(iTimeType);

	            cv.put(KEY_REPS, reps);
	            cv.put(KEY_EXERCISE, exercise); 
	            cv.put(KEY_TIMETYPE, time);

	            ourDatabase.insert(DATABASE_CHOSEN_EQUIP_TABLE, null, cv);
	            } while (c.moveToNext() && KEY_EQUIP == equip);
	        }
		
		
		return null;
	}

I have gone over this again and again and I have to be missing something.  