Hello,
I just have a strange problem in my osTicket 1.18.1.
I added 2 fields/columns to the tickets form to use osTicket personalisation capabilities and just remove them after.
Then my ticket list where broken with an error on the Tickets Query :
<b>Fatal error</b>: Uncaught InconsistentModelException: Unable to prepare query: Unknown column 'B2.subject' in 'field list'
I check my database and just see that the column subject in ost_ticket__cdata was renamed to duree (name of the latest added tickets form field).
I then rename the column to subject and then everything was going back.
Step to reproduce : Simply add 2 columns to the Ticket Form. Then subject column in table will be renamed to the second added field in the ost_ticket__cdata datatable.