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 'index AND s_p.ProductDisplay = 1 LIMIT 1' at line 11

SELECT s_p.ProductID, s_p.ProductName, s_p.ProductSefName, s_p.ProductDisplay, s_p.ProductCategoryID, s_p.ProductCoverPhoto, s_p.ProductDescription, s_p.ProductPhotoCode FROM site_products AS s_p WHERE s_p.ProductID = index AND s_p.ProductDisplay = 1 LIMIT 1

Filename: models/Fe_Product_Detail_Model.php

Line Number: 48