I'm having trouble exporting to Excel using the native export action in Filament 3.2. When I sort the columns in the table and try to export to Excel, the process fails with the following error:
"PDOException: SQLSTATE[42P10]: Invalid column reference: 7 ERROR: SELECT DISTINCT ON expressions must match initial ORDER BY expressions LINE 1: select distinct on ("audit_findings"."id") * from "audit_fin..."
However, when I clear the sorting parameters, the export process succeeds.
Solved, just ignore the sorting params during export process with editing this line in vendor/filament/actions/src/Concerns/CanExportRecords.php > setUp()