f0abadfc57
StatsModel queries used `FROM tickets WHERE` with no table alias, but getVisibilityFilter() returns SQL referencing `t.visibility`. Admins were unaffected because they get `1=1` with no column references. Added `t` alias to all three tickets queries that use $visSQL. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>