select c.categories_id, cd.categories_name, cp.parent_id	from `woodbrass_com_-_OsCommerce`.categories_v2 c, `woodbrass_com_-_OsCommerce`.categories_description_v2 cd, `woodbrass_com_-_OsCommerce`.categories_v2_parent cp	where cp.parent_id = '0'	and c.categories_id = cd.categories_id	and c.categories_id = cp.categories_id	and cd.language_id =	order by cp.sort_order, cd.categories_name
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order by cp.sort_order, cd.categories_name' at line 8
Array
( [0] => Array ( [file] => /srv/www/www.woodbrass.com/releases/20211022090714/includes/functions/general.php [line] => 5021 [function] => tep_db_query [args] => Array ( [0] =>	select c.categories_id, cd.categories_name, cp.parent_id	from `woodbrass_com_-_OsCommerce`.categories_v2 c, `woodbrass_com_-_OsCommerce`.categories_description_v2 cd, `woodbrass_com_-_OsCommerce`.categories_v2_parent cp	where cp.parent_id = '0'	and c.categories_id = cd.categories_id	and c.categories_id = cp.categories_id	and cd.language_id =	order by cp.sort_order, cd.categories_name ) ) [1] => Array ( [file] => /srv/www/www.woodbrass.com/releases/20211022090714/doctype.php [line] => 72 [function] => get_root_categ [args] => Array ( ) ) [2] => Array ( [file] => /srv/www/www.woodbrass.com/releases/20211022074131/product_info.php [line] => 93 [args] => Array ( [0] => /srv/www/www.woodbrass.com/releases/20211022090714/doctype.php ) [function] => require_once )
)