SELECT c_id1 FROM (SELECT ag1.c_id AS c_id1 FROM article_group ag1 LEFT JOIN article_group ag2 ON ag1.c_id = ag2.c_parent LEFT JOIN article_group ag3 ON ag2.c_id = ag3.c_parent LEFT JOIN article_group ag4 ON ag3.c_id = ag4.c_parent LEFT JOIN article_group ag5 ON ag4.c_id = ag5.c_parent LEFT JOIN article_group ag6 ON ag5.c_id = ag6.c_parent LEFT JOIN article_group ag7 ON ag6.c_id = ag7.c_parent LEFT JOIN article_group ag8 ON ag7.c_id = ag8.c_parent LEFT JOIN article_group ag9 ON ag8.c_id = ag9.c_parent LEFT JOIN article_group ag10 ON ag9.c_id = ag10.c_parent LEFT JOIN article_group ag11 ON ag10.c_id = ag11.c_parent WHERE ag1.c_id='10' AND ag1.c_id IS NOT NULL) AS A1 UNION SELECT c_id2 FROM (SELECT ag2.c_id AS c_id2 FROM article_group ag1 LEFT JOIN article_group ag2 ON ag1.c_id = ag2.c_parent LEFT JOIN article_group ag3 ON ag2.c_id = ag3.c_parent LEFT JOIN article_group ag4 ON ag3.c_id = ag4.c_parent LEFT JOIN article_group ag5 ON ag4.c_id = ag5.c_parent LEFT JOIN article_group ag6 ON ag5.c_id = ag6.c_parent LEFT JOIN article_group ag7 ON ag6.c_id = ag7.c_parent LEFT JOIN article_group ag8 ON ag7.c_id = ag8.c_parent LEFT JOIN article_group ag9 ON ag8.c_id = ag9.c_parent LEFT JOIN article_group ag10 ON ag9.c_id = ag10.c_parent LEFT JOIN article_group ag11 ON ag10.c_id = ag11.c_parent WHERE ag1.c_id='10' AND ag2.c_id IS NOT NULL) AS A2 UNION SELECT c_id3 FROM (SELECT ag3.c_id AS c_id3 FROM article_group ag1 LEFT JOIN article_group ag2 ON ag1.c_id = ag2.c_parent LEFT JOIN article_group ag3 ON ag2.c_id = ag3.c_parent LEFT JOIN article_group ag4 ON ag3.c_id = ag4.c_parent LEFT JOIN article_group ag5 ON ag4.c_id = ag5.c_parent LEFT JOIN article_group ag6 ON ag5.c_id = ag6.c_parent LEFT JOIN article_group ag7 ON ag6.c_id = ag7.c_parent LEFT JOIN article_group ag8 ON ag7.c_id = ag8.c_parent LEFT JOIN article_group ag9 ON ag8.c_id = ag9.c_parent LEFT JOIN article_group ag10 ON ag9.c_id = ag10.c_parent LEFT JOIN article_group ag11 ON ag10.c_id = ag11.c_parent WHERE ag1.c_id='10' AND ag3.c_id IS NOT NULL) AS A3 UNION SELECT c_id4 FROM (SELECT ag4.c_id AS c_id4 FROM article_group ag1 LEFT JOIN article_group ag2 ON ag1.c_id = ag2.c_parent LEFT JOIN article_group ag3 ON ag2.c_id = ag3.c_parent LEFT JOIN article_group ag4 ON ag3.c_id = ag4.c_parent LEFT JOIN article_group ag5 ON ag4.c_id = ag5.c_parent LEFT JOIN article_group ag6 ON ag5.c_id = ag6.c_parent LEFT JOIN article_group ag7 ON ag6.c_id = ag7.c_parent LEFT JOIN article_group ag8 ON ag7.c_id = ag8.c_parent LEFT JOIN article_group ag9 ON ag8.c_id = ag9.c_parent LEFT JOIN article_group ag10 ON ag9.c_id = ag10.c_parent LEFT JOIN article_group ag11 ON ag10.c_id = ag11.c_parent WHERE ag1.c_id='10' AND ag4.c_id IS NOT NULL) AS A4 UNION SELECT c_id5 FROM (SELECT ag5.c_id AS c_id5 FROM article_group ag1 LEFT JOIN article_group ag2 ON ag1.c_id = ag2.c_parent LEFT JOIN article_group ag3 ON ag2.c_id = ag3.c_parent LEFT JOIN article_group ag4 ON ag3.c_id = ag4.c_parent LEFT JOIN article_group ag5 ON ag4.c_id = ag5.c_parent LEFT JOIN article_group ag6 ON ag5.c_id = ag6.c_parent LEFT JOIN article_group ag7 ON ag6.c_id = ag7.c_parent LEFT JOIN article_group ag8 ON ag7.c_id = ag8.c_parent LEFT JOIN article_group ag9 ON ag8.c_id = ag9.c_parent LEFT JOIN article_group ag10 ON ag9.c_id = ag10.c_parent LEFT JOIN article_group ag11 ON ag10.c_id = ag11.c_parent WHERE ag1.c_id='10' AND ag5.c_id IS NOT NULL) AS A5 UNION SELECT c_id6 FROM (SELECT ag6.c_id AS c_id6 FROM article_group ag1 LEFT JOIN article_group ag2 ON ag1.c_id = ag2.c_parent LEFT JOIN article_group ag3 ON ag2.c_id = ag3.c_parent LEFT JOIN article_group ag4 ON ag3.c_id = ag4.c_parent LEFT JOIN article_group ag5 ON ag4.c_id = ag5.c_parent LEFT JOIN article_group ag6 ON ag5.c_id = ag6.c_parent LEFT JOIN article_group ag7 ON ag6.c_id = ag7.c_parent LEFT JOIN article_group ag8 ON ag7.c_id = ag8.c_parent LEFT JOIN article_group ag9 ON ag8.c_id = ag9.c_parent LEFT JOIN article_group ag10 ON ag9.c_id = ag10.c_parent LEFT JOIN article_group ag11 ON ag10.c_id = ag11.c_parent WHERE ag1.c_id='10' AND ag6.c_id IS NOT NULL) AS A6 UNION SELECT c_id7 FROM (SELECT ag7.c_id AS c_id7 FROM article_group ag1 LEFT JOIN article_group ag2 ON ag1.c_id = ag2.c_parent LEFT JOIN article_group ag3 ON ag2.c_id = ag3.c_parent LEFT JOIN article_group ag4 ON ag3.c_id = ag4.c_parent LEFT JOIN article_group ag5 ON ag4.c_id = ag5.c_parent LEFT JOIN article_group ag6 ON ag5.c_id = ag6.c_parent LEFT JOIN article_group ag7 ON ag6.c_id = ag7.c_parent LEFT JOIN article_group ag8 ON ag7.c_id = ag8.c_parent LEFT JOIN article_group ag9 ON ag8.c_id = ag9.c_parent LEFT JOIN article_group ag10 ON ag9.c_id = ag10.c_parent LEFT JOIN article_group ag11 ON ag10.c_id = ag11.c_parent WHERE ag1.c_id='10' AND ag7.c_id IS NOT NULL) AS A7 UNION SELECT c_id8 FROM (SELECT ag8.c_id AS c_id8 FROM article_group ag1 LEFT JOIN article_group ag2 ON ag1.c_id = ag2.c_parent LEFT JOIN article_group ag3 ON ag2.c_id = ag3.c_parent LEFT JOIN article_group ag4 ON ag3.c_id = ag4.c_parent LEFT JOIN article_group ag5 ON ag4.c_id = ag5.c_parent LEFT JOIN article_group ag6 ON ag5.c_id = ag6.c_parent LEFT JOIN article_group ag7 ON ag6.c_id = ag7.c_parent LEFT JOIN article_group ag8 ON ag7.c_id = ag8.c_parent LEFT JOIN article_group ag9 ON ag8.c_id = ag9.c_parent LEFT JOIN article_group ag10 ON ag9.c_id = ag10.c_parent LEFT JOIN article_group ag11 ON ag10.c_id = ag11.c_parent WHERE ag1.c_id='10' AND ag8.c_id IS NOT NULL) AS A8 UNION SELECT c_id9 FROM (SELECT ag9.c_id AS c_id9 FROM article_group ag1 LEFT JOIN article_group ag2 ON ag1.c_id = ag2.c_parent LEFT JOIN article_group ag3 ON ag2.c_id = ag3.c_parent LEFT JOIN article_group ag4 ON ag3.c_id = ag4.c_parent LEFT JOIN article_group ag5 ON ag4.c_id = ag5.c_parent LEFT JOIN article_group ag6 ON ag5.c_id = ag6.c_parent LEFT JOIN article_group ag7 ON ag6.c_id = ag7.c_parent LEFT JOIN article_group ag8 ON ag7.c_id = ag8.c_parent LEFT JOIN article_group ag9 ON ag8.c_id = ag9.c_parent LEFT JOIN article_group ag10 ON ag9.c_id = ag10.c_parent LEFT JOIN article_group ag11 ON ag10.c_id = ag11.c_parent WHERE ag1.c_id='10' AND ag9.c_id IS NOT NULL) AS A9 UNION SELECT c_id10 FROM (SELECT ag10.c_id AS c_id10 FROM article_group ag1 LEFT JOIN article_group ag2 ON ag1.c_id = ag2.c_parent LEFT JOIN article_group ag3 ON ag2.c_id = ag3.c_parent LEFT JOIN article_group ag4 ON ag3.c_id = ag4.c_parent LEFT JOIN article_group ag5 ON ag4.c_id = ag5.c_parent LEFT JOIN article_group ag6 ON ag5.c_id = ag6.c_parent LEFT JOIN article_group ag7 ON ag6.c_id = ag7.c_parent LEFT JOIN article_group ag8 ON ag7.c_id = ag8.c_parent LEFT JOIN article_group ag9 ON ag8.c_id = ag9.c_parent LEFT JOIN article_group ag10 ON ag9.c_id = ag10.c_parent LEFT JOIN article_group ag11 ON ag10.c_id = ag11.c_parent WHERE ag1.c_id='10' AND ag10.c_id IS NOT NULL) AS A10 ORDER BY c_id1
Out of resources when opening file './db_3_dbdweb_en/article_group.MYD' (Errcode: 24)