postgresql7.1 SELECT as_sessionsx.session_id, as_sessionsx.name, as_sessionsx.title, as_sessionsx.completed_datetime, as_sessionsx.subject_id, persons.first_names || ' ' || persons.last_name AS subject_name, as_assessmentsx.title AS assessment_name FROM (as_sessionsx INNER JOIN as_assessmentsx ON as_sessionsx.assessment_id = as_assessmentsx.assessment_id) INNER JOIN persons ON as_sessionsx.subject_id = persons.person_id WHERE as_sessionsx.assessment_id=:assessment_id SELECT as_sessionsx.session_id, as_sessionsx.name, as_sessionsx.title, as_sessionsx.completed_datetime, as_sessionsx.subject_id, persons.first_names || ' ' || persons.last_name AS subject_name, as_assessmentsx.title AS assessment_name FROM (as_sessionsx INNER JOIN as_assessmentsx ON as_sessionsx.assessment_id = as_assessmentsx.assessment_id) INNER JOIN persons ON as_sessionsx.subject_id = persons.person_id WHERE as_sessionsx.assessment_id=:assessment_id AND as_sessionsx.subject_id=:subject_id