Server shutdown in progress select * from(select id,title,titleurl,sum((case when instr(title,'泰勒·希罗')>0 then 1 else 0 end)+(case when instr(title,'热火队')>0 then 1 else 0 end)+(case when instr(title,'奥特曼')>0 then 1 else 0 end)+(case when instr(title,'顺位')>0 then 1 else 0 end)+(case when instr(title,'nba')>0 then 1 else 0 end)+(case when instr(title,'泰罗')>0 then 1 else 0 end)) as cnt from ***_ecms_jj group by id) as temp where cnt>0 order by cnt desc,id desc limit 10