Error:

select a.*,b.PricePlan from tbl_users as a left join tbl_price_plans as b on ( a.PricePlanId=b.PricePlanId ) where a.UserId= LIMIT 1 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 'LIMIT 1' at line 1