A Database Error Occurred

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 '' at line 6

SELECT * FROM `product_master` pm LEFT JOIN `product_category` pc on pm.pcat_id = pc.pcat_id LEFT JOIN `product_slug` ps on pm.p_id = ps.p_id LEFT JOIN `product_price` pp on pm.p_id = pp.p_id LEFT JOIN `product_images` pi on pm.p_id=pi.product_id WHERE pm.child_id=

Filename: models/Product_Model.php

Line Number: 331