Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dpdexter/4e701d025f37aebbfdf7 to your computer and use it in GitHub Desktop.
Save dpdexter/4e701d025f37aebbfdf7 to your computer and use it in GitHub Desktop.
SELECT
c.title as category_title,
c.url_title as category_url_title,
c.image as category_image
FROM
exp_br_category c,
exp_br_product_category pc
WHERE
c.parent_id = 93
AND
c.category_id = pc.category_id
AND
pc.product_id = {product_id}
LIMIT 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment