Adding training_type to where clause