Warning: pg_query(): Query failed: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
LINE 1: ...ate_end > NOW())) GROUP BY ps.product_id ORDER BY p.sort_ord...
^ in /var/www/upload/system/library/db/pgsql.php on line 52TypeError: pg_result_error(): Argument #1 ($result) must be of type PgSql\Result, PgSql\Connection given in /var/www/upload/system/library/db/pgsql.php on line 79