SELECT s.article, sc.tree FROM supermag.smspec s, supermag.smcard c, supermag.sacardclass sc WHERE s.doctype=indoctype AND s.docid=indocid AND s.article=c.article AND c.idclass=sc.id AND ((sc.tree like '1.2.%') or (sc.tree like '1.4.1.%'))
SELECT s.article, sc.tree FROM supermag.smspec s, supermag.smcard c, supermag.sacardclass sc WHERE s.doctype=indoctype AND s.docid=indocid AND s.article=c.article AND c.idclass=sc.id AND (sc.tree like ('1.2.%') or sc.tree like ('1.4.1.%'))