Dear OrdaSoft Support Team,
I would like to report another reproducible bug in OS Image Gallery Pro 6.2.1 on Joomla 6.
Confirmed on Joomla 6.x / PHP 8.x
Error:
When creating a new gallery, the following SQL error occurs:
1054 Unknown column 'gc.ordering' in 'SELECT'
Analysis:
After enabling Joomla debug mode, the stack trace clearly shows that the error originates from:
administrator/components/com_osgallery/helpers/osGalleryHelperAdmin.php
In the method displayGallery(), the following line is executed:
$query->order('gc.ordering ASC'

;
However, in this execution context no table alias gc is defined in the query, which results in the SQL error.
Working fix:
Changing the line to:
$query->order('ordering ASC'

;
resolves the issue completely.
After this change, new galleries can be created and saved without any SQL errors.
Conclusion:
The database structure is correct
The column ordering exists
The issue is caused by an invalid table alias used in the ORDER BY clause
Please consider fixing this in the official codebase so users do not need to patch core files manually.
For security reasons, I cannot provide backend or FTP access, but the issue is fully reproducible and the fix is confirmed.
Kind regards
Rudolf