Added index to Stacks.cID for join to collections table (or pages table) and for query where clause