You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have done some test downloads and craft.linkvault.downloads and craft.linkvault.records are both working as expected but the groupCount example code above produces the following error.
Database Exception – yii\db\Exception
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'order' in 'where clause'
The SQL being executed was: SELECT `fileName`, COUNT(*) AS `census`
FROM `linkvault_downloads`
WHERE (`userId`=1) AND (`order`='census desc')
GROUP BY `fileName`
ORDER BY COUNT(*) DESC
LIMIT 100
Error Info: Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column 'order' in 'where clause'
)
Any idea what could be wrong?
The text was updated successfully, but these errors were encountered:
There will be a fix for this in the next release. Until then, removing that "order" parameter should prevent the error and the results will be sorted by highest count, descending by default.
I have copied the code from the groupCount example in the docs as a starting point.
I have done some test downloads and craft.linkvault.downloads and craft.linkvault.records are both working as expected but the groupCount example code above produces the following error.
Any idea what could be wrong?
The text was updated successfully, but these errors were encountered: