A Database Error Occurred

Error Number: 1064

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 7

SELECT p.uri, p.full_name, p.promotion, p.recommended, p.new, p.action, p.present, p.name, p.main_price, p.promotion_price, p.id, p.product_type, p.promotion_id, p.active_promotion_price FROM news_related_products nrp JOIN products_ap p ON nrp.product_id = p.id WHERE nrp.article_id =

Filename: application/models/mproducts.php

Line Number: 1906