Add missing JOIN statements to SQL query