Ошибка в 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 (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) AND one_catalog.vendor=2096 AND one_tree.visible=1 ORDER BY available DESC, one_tree.num LIMIT 0,100