SELECT d.* FROM tbl_pages o inner join tbl_page_details d ON o.page_id=d.page_id WHERE o.page_id= AND d.language_id=1 and o.status=1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND d.language_id=1 and o.status=1' at line 1