WordPress database error: [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 tax.taxonomy IN ('category') ORDER BY terms.name' at line 1]
SELECT DISTINCT terms.*, tax.taxonomy, tax.parent, tax.count FROM wp_qzg43vpt0k_term_relationships AS rel LEFT JOIN wp_qzg43vpt0k_term_taxonomy AS tax ON rel.term_taxonomy_id=tax.term_taxonomy_id LEFT JOIN wp_qzg43vpt0k_terms AS terms ON tax.term_id=terms.term_id WHERE rel.object_id = AND tax.taxonomy IN ('category') ORDER BY terms.name