Error description: 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 'and AmountPaid > 0 ORDER by BillingDate DESC' at line 1 SQL: SELECT No, RecordID, DATE_FORMAT(BillingDate,'%M %Y') As Receipts from Subscription WHERE No = and AmountPaid > 0 ORDER by BillingDate DESC

Improving Software for Society