Ошибка в 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 (3008,11249,11248,11247,11009,10983,4981,4847,4846,4549,4300,4299,4298,4203,4202,4201,4198,4197,4196,4195,4194,4193,4192,4191,4190,4189,4188,4187,4186,4185,4183,4182,4181,4180,4179,4175,4174,4173,4170,4162,4161,4160,4159,4046,3933,3932,3900,3899,3898,3897,3882,3881,3880,3879,3878,3875,3874,3873,3872,3871,3870,3869,3857,3856,3855,3854,3853,3852,3851,3850,3849,3848,3847,3846,3845,3844,3843,3842,3841,3806,3805,3804,3803,3802,3799,3798,3797,3796,3795,3794,3793,3792,3791,3790,3789,3788,3787,3786,3785,3598,3597,3596,3595,3594,3593,2873,2872,2869,2871,2867,2866,2795,2794,2793,2792,2791,2790,2789,2788) AND one_catalog.vendor=1069 AND one_tree.visible=1 ORDER BY available DESC, one_tree.num LIMIT 0,100