Ошибка в 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 (4966,5016,5044,5043,5042,5041,5040,5039,5038,5037,5036,5035,5034,5033,5032,5031,5030,5029,5028,5027,5026,5025,5024,5023,5022,5021,5020,5019,5018,5017,6229,6343,6341,6340,6339,6338,4967,5523,5522,5521,5520,5519,5518,5517,5516,5515,5514,5513,5512,5511,5510,5506,5501,5500,5499,5498,5497,5496,5465,5464,5463,5461,5460,5459,5458,5457,5456,5455,5454,5453,5452,5451,5450,5432,5431,5430,5429,5428,5427,5426,5425,5424,5423,5422,5421,5420,5419,5418,5417,5416,5415,5414,5413,5398,5396,5395,5394,5392,5391,5390,5388,5387,5386,5385,5384,5383,5381,5380,5379,5378,5377,5376,5374,5372,5341,5340,5339,5338,5337,5336,5335,5334,5333,5332,5331,5330,5329,5328,5327,5326,5325,5324,5323,5322,5321,5320,5319,5317,5316,5298,5296,5295,5292,5291,5290,5288,5286,5285,5284,5273,5272,5209,5208,5207,5206,5205,5204,5203,5202,5201,5200,5199,5197,5196,5195,5194,5193,5192,5191,5190,5189,5188,5187,5186,5185,5184,5183,5181,5180,5179,5178,5177,5176,5175,5174,5173,5172,5166,5165,5164,5163,5158,5157,5137,5136,5135,5134,5133,5132,5131,5130,5112,5111,5110,5109,5108,5107,5106,5105,5104,5077,5076,5073,5069,5068,5015,5014,4997,4996,4995,4994,4993,4992,4991,4987,4986,4985,4984,4983,4979,4974,4978,4968,4977,4976,4975,7053,7054,5239,8338,8337,8336,8335,6261,6111,5309,5308,5307,5306,5305,5304,5303,5302,5301,5300,5299,5297,5294,5293) AND one_tree.visible=1 ORDER BY available DESC, one_tree.num LIMIT 0,100