WordPress database error: [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 ') OR p.product_id IN (7307) OR g.apply_to = 'all'
GROUP BY g.id
ORDER...' at line 5]
SELECT g.*, GROUP_CONCAT(DISTINCT c.category_id) as `categories`, GROUP_CONCAT(DISTINCT p.product_id) as `products`
FROM wp_za_groups as g
LEFT JOIN wp_za_categories_to_groups as c ON c.group_id = g.id
LEFT JOIN wp_za_products_to_groups as p ON p.group_id = g.id
WHERE c.category_id IN () OR p.product_id IN (7307) OR g.apply_to = 'all'
GROUP BY g.id
ORDER BY g.priority ASC
Reviews
There are no reviews yet.