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! While you're at it, check out some resources Treehouse students have shared here.
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 trialJessica Schteiden
3,254 PointsHey 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;
2 Answers
KRIS NIKOLAISEN
54,971 PointsThe error message is no such column returned_by. It is just return_by.
Jessica Schteiden
3,254 PointsAhh thank you!!