$sql = "SELECT key FROM data WHERE (att Like '%e%') AND ( key) in (Select key from data where (att LIKE '%e%'))AND (key) in (Select key from data where (att LIKE '%a,b,c%')) GROUP BY key ORDER BY key";