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 'index' at line 1
select * from website_pages a, websites b where a.website_id = b.website_id and a.website_id = 146 and website_page_id = easyorder.b2c/index