Error Number: 1064
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 'AND vo.id = pvd.variant_option_id GROUP BY vt.name' at line 5
SELECT vt.name AS variant_type FROM product_variant_mappings pvm JOIN product p ON p.id = pvm.product_id JOIN variant_types vt ON pvm.variant_type_id = vt.id JOIN variant_options vo ON vo.variant_type_id = vt.id JOIN product_variant_combinations pvc ON pvc.product_id = pvm.product_id JOIN product_variant_details pvd ON pvd.combination_id = pvc.id WHERE pvm.product_id = AND vo.id = pvd.variant_option_id GROUP BY vt.name
Filename: views/Home/details.php
Line Number: 70