Ошибка в SQL-запросе: SELECT DISTINCT one_catalog.*, one_tree.* FROM one_catalog INNER JOIN one_tree ON one_catalog.tree=one_tree.id WHERE site=1 AND one_tree.id IN (7926,8492,8491,8490,8489,8488,8487,8486,8485,8484,8483,8482,8481,8479,8478,8477,8476,8474,8472,8471,8470,8469,8466,8465,8464,8463,8462,8461,8460,8459,8458,8457,8456,8455,8454,8453,8452,8451,8450,8449,8448,8447,8446,8445,8444,8443,8436,8435,8434,8433,8432,8431,8430,8429,8419,8418,8417,8416,8415,8414,8413,8412,8425,8424,8423,8422,8421,8420,8411,8410,8409,8408,8407,8406,8405,8404,8403,8402,8401,8400,8399,8398,8397,8396,8395,8394,8393,8392,8391,8390,8389,8388,8387,8386,8385,8384,8383,8382,8349,8348,8347,8346,8345,8344,8268,8267,8266,8265,8264,8263,8262,8261,8260,8259,8258,8257,8256,8255,8254,8253,8252,8251,8250,8249,8248,8247,8246,8245,8244,8243,8242,8241,8240,8239,8238,8237,8236,8235,8234,8233,8232,8231,8227,8226,8225,8224,8223,8222,8221,8220,8218,8217,8216,8215,8214,8213,8212,8211,8209,8208,8207,8206,8205,8204,8203,8202,8201,8200,8199,8198,8197,8196,8195,8194,8193,8192,8191,8190,8189,8188,8187,8186,8185,8184,8183,8182,8181,8180,8179,8178,8177,8176,8175,8174,8173,8172,8171,8169,8168,8167,8166,8165,8084,8089,8088,8087,8086,8085,8083,8082,8081,8080,8079,8072,8071,8070,8069,8068,8067,8066,8065,8064,8060,8059,8058,8057,8056,8055,8054,8053,8052,8051,8050,8049,8048,8047,8046,8045,8044,8043,8042,8033,8032,8031,8030,8029,8028,8027,8026,8025,8024,8023,8017,8016,8015,8014,8013,8012,8011,8010,8009,8008,8007,8006,8005,8004,8003,8001,8000,7999,7998,7996,7995,7994,7993,7992,7991,7990,7989,7988,7987,7986,7985,7984,7979,7980,7981,7982,7974,7975,7976,7977,7978,7969,7970,7971,7972,7973,7957,7958,7959,7960,7952,7953,7954,7955,7956,7946,7947,7948,7949,7950,7940,7939,7938,7937,7936,7935,7933,7932) AND one_tree.visible=1 ORDER BY available DESC, one_tree.num LIMIT 0,100