select t1.nid,t1.title,t2.nid,t2.title from ( SELECT ntwo.nid, ntwo.title
FROM node AS ntwo
INNER JOIN content_type_jiaocheng AS jctwo ON ntwo.nid = jctwo.nid
WHERE ntwo.type='jiaocheng' ) as t1 ,(
SELECT n.nid, n.title, jc.field_jiaochengshiping_fid, jc.field_shiping_bofang_intro_value
FROM node AS n
INNER JOIN content_type_jiaocheng AS jc ON jc.nid = n.nid
WHERE jc.field_jiaochengshiping_fid >0
AND n.title LIKE '%aaa%'
) as t2 where replace(replace(concat(t1.title,'aaa'),' ',''),' ','')=replace(replace(t2.title,' ',''),' ','')