Error:
SELECT Credits, CurrencyAbb, CurrencySymbol, ConversionRate, A.CurrencyId, DefaultCurrency, AllowAPI FROM tbl_gf_users A LEFT JOIN tbl_gf_currency B ON (A.CurrencyId = B.CurrencyId) WHERE 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