getData:Unknown column 'p.path_length' in 'field list'
SQL=SELECT DISTINCT `categories`.`id` AS `categories___id`,
`categories`.`id` AS `categories___id_raw`,
`categories`.`date_time` AS `categories___date_time`,
`categories`.`date_time` AS `categories___date_time_raw`,
`categories`.`category` AS `categories___category`,
`categories`.`category` AS `categories___category_raw`,
`categories`.`parent` AS `categories___parent_raw`,
CONCAT_WS('', REPEAT('-', p.`path_length`),
categories_0.`category`) AS `categories___parent`,
`categories`.`path_length` AS `categories___path_length`, `categories`.`path_length` AS `categories___path_length_raw`, `categories`.`crumbs` AS `categories___crumbs`, `categories`.`crumbs` AS `categories___crumbs_raw`, `categories`.`id` AS slug , `categories`.`id` AS `__pk_val` FROM `categories` LEFT JOIN `categories` AS `categories_0` ON `categories_0`.`id` = `categories`.`parent` WHERE `categories`.`id` IN ('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15') AND `categories`.`id` IN ('1','2','3','4','5','6','7','8','9','10')