I have the following SelectCommand:
1 2 3 4 5 6 7 |
$grid->SelectCommand = 'SELECT liquidityid, month, depreciation, ROUND(IFNULL((SELECT SUM(invoiceamount/IF(invoicecurrency="EUR",1,rate2eur)) FROM subscriptions WHERE expirationdate>=CURDATE())/12, 0), 0) AS subs, reserves FROM liquidity'; |
If I run it in Phpmyadmin, it works correctly:
But in jqGrid (PHP), it throws the following error:
I have used Select commands nested in the SelectCommand statement before and it worked fine. I can’t figure out what the problem is.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top