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 4

select p.id,p.`name`,p.name_slug,p.desig,p.des,p.created_dt,ast.name image,p.video_url from halloffame p left join assets ast on (p.id=ast.section_id and ast.state=1) where p.state=1 and p.id=

Filename: models/Halloffame_model.php

Line Number: 31