SELECT * FROM outlets o inner join outlet_details d ON o.outlet_id=d.outlet_id WHERE o.outlet_id= AND d.language_id=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' at line 1