Error:





SELECT PaymentId, Amount, A.Credits, D.PaymentStatus, C.PaymentMethod, A.PaymentStatus AS PaymentStatusId, PaymentDtTm, Currency, A.Vat, InvoiceFlatFee FROM tbl_gf_payment_status D, tbl_gf_payments A LEFT JOIN tbl_gf_payment_methods C ON (A.PaymentMethod = C.PaymentMethodId) WHERE A.PaymentStatus = D.PaymentStatusId AND ByAdmin = '0' AND A.UserId = ORDER BY PaymentId DESC LIMIT 0, 50

Error!!!