Database Error; SQL: SELECT
DISTINCT
`t`.*, `d`.*
FROM `wp_terms` AS `t`
LEFT JOIN `wp_term_taxonomy` AS `tt` ON `tt`.`term_id` = `t`.`term_id`
LEFT JOIN `wp_term_relationships` AS `tr` ON `tr`.`term_taxonomy_id` = `tt`.`term_taxonomy_id`
LEFT JOIN `wp_pods_product_cat` AS `d` ON `d`.`id` = `t`.`term_id`
WHERE ( ( parent = ) AND ( `tt`.`taxonomy` = 'product_cat' ) )
ORDER BY `t`.`term_order` ASC, `t`.`name`, `t`.`term_id`; Response: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND ( `tt`.`taxonomy` = 'product_cat' ) )
' at line 9