My query is SIMPLE SELECT: select 1 from people_consent LIMIT 1;
VIEWS:
CREATE OR REPLACE VIEW temp_consent AS
SELECT p.id, max(en.enrolled_at) AS daterecorded, a.answer
FROM people p, enrollments en, encounters ec, encounters_questions_answers eqa, questions_answers qa, answers a...