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 ')' at line 4]
SELECT DISTINCT name, slug FROM `sm_term_relationships` tr
INNER JOIN `sm_term_taxonomy` tt ON (tr.`term_taxonomy_id` = tt.`term_taxonomy_id` AND tt.`taxonomy`='pa_product-type')
INNER JOIN `sm_terms` terms ON (tt.`term_id` = terms.`term_id`)
AND tr.object_id IN ()
No products were found matching your selection.