All tickets listing had PostgreSQL problem with missing includes

Fix for exception in PostgreSQL & newer MySQL for missing table listed in the `where` clause on the projects table.

Fixes remaining portion of #7.