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 'imagepath '' AND (site_id=1 OR site_id=0)' at line 1

SELECT pages_id FROM pages WHERE page_name='js/' imagepath '' AND (site_id=1 OR site_id=0)

DATABASE_TEP_DB_ERROR