-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Description
Is there a trick to be able to paginate extended queries? I get this error when trying to do so:
SQLSTATE[42000]: Syntax error or access violation: 1066 Not unique table/alias: 'purchase_counts'
The SQL being executed was: SELECT elements.id, elements.fieldLayoutId, elements.uid, elements.enabled, elements.archived, elements.dateCreated, elements.dateUpdated, elements_sites.slug, elements_sites.siteId, elements_sites.uri,
Steps to reproduce
{% set productQuery = craft.purchasePatterns.extended().orderBy('qtyCount DESC').relatedTo(category).limit(24) %}{% paginate productQuery as pageInfo, productEntries %}
Additional info
- Craft version: 3.4.23
- Plugin version: 1.1.5
- PHP version: 7.3.16
- Database driver & version: MySQL 5.7.29
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels