SELECT * FROM information_schema.PROCESSLIST WHERE info IS NOT NULL ORDER BY TIME desc,state,INFO; SELECT CONCAT('kill ',id,';') AS KillSQL FROM information_schema.PROCESSLIST WHERE info LIKE '%from /*[Article_List]*/%' and time>10;