User logged out on 'simple search' or ticket creation postgresql

I have a problem similar to the issue posted [rt-users] Display mails containing tables and other styles created from MS Word. however I am using a postgresql database not mysql.
Every time a logged in user performs a simple search using only an integer value the user is logged out. RT version 3.8.8

If anyone has any input on resolving the issue please let me know. Thanks