SELECT * FROM `uchome_space` AS `space` LEFT JOIN `uchome_spacefield` AS `spacefield` on `space`.`uid`=`spacefield`.`uid` WHERE `space`.`namestatus`='1' AND `space`.`groupid` in ('3') ORDER BY `space`.`updatetime` DESC, `space`.`viewnum` DESC, `space`.`lastlogin` DESC