OperationalError: no such table: priority
SELECT COUNT(*) FROM ( SELECT * FROM ticket, priority, summary ) AS tab