Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Jessica Schteiden3,254 Points
Hey team, I tried this query out on Q3 but it didn't work. Can someone help me understand why it's breaking?
SELECT b.title, p.first_name, p.last_name, p.email, l.loaned_on, l.returned_by, l.returned_on FROM books AS b INNER JOIN loans AS l ON b.id = l.book_id INNER JOIN patrons AS p ON l.patron_id = p.id ORDER BY loaned_on DESC;
KRIS NIKOLAISEN54,944 Points
The error message is no such column returned_by. It is just return_by.