SELECT a.attr_name FROM `ecshop`.`ecs_attribute` AS a, `ecshop`.`ecs_goods_attr` AS ga, `ecshop`.`ecs_goods` AS g WHERE (g.cat_id IN ('1','4','8')) AND a.attr_id = ga.attr_id AND g.goods_id = ga.goods_id AND a.attr_id='75' 这条语句用ViewModel怎么写?学php没多久,谢谢了