SELECT count(*) as num, i.entityid,, e.platform, e.filename, i.thumb_filename as ifilename, i.thumb_width, e.sectionid, company, secondcompany, e.type,i.image_path FROM neoseeker.images i, neoseeker.entities e, neoseeker.products p WHERE e.entityid = i.entityid AND = p.productid AND e.type = 'Game' AND pair_num <> 1 AND e.platform='iPhone' AND e.status = 'active' AND ( LIKE 'M%' OR LIKE 'the M%') GROUP BY HAVING num > 4 ORDER BY LIMIT 6