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 1

SELECT k.*, i.image FROM t_assoc AS a INNER JOIN keybenefits AS k ON k.id = a.item_id1 INNER JOIN t_images AS i ON i.item_id = a.item_id1 AND i.table_ref = 'keybenefits' AND i.type = 'logo_image1' WHERE a.table_ref1 = 'keybenefits' AND a.table_ref2 = 't_products' AND a.item_id2 =

Filename: models/Basicmodel.php

Line Number: 995