Checked the cause of bugs in the ticket when the user is admin, then when edited to non-admin, the tickets where the user logged are not displaying, as per checking, the cause of this is the hidden filter from a non-admin user, as there is no value set on it, this cause an error. Modified the query and added a condition that will check if the filter has no value it should not add the where statement in the query. Tested the changes, and as per testing, it is now OK. Applied the changes in all tickets query to my tickets and my recent tickets. Tested the changes, and all is working.