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

Yaswanth Goli
6,872 PointsUse the EXPLAIN keyword to explain a where query where you see if the 'first_name' equals 'Pasan' in the 'users' tables.
my query is
EXPLAIN SELECT * FROM users WHERE first_name = “Pasan”
but its showing an error
f5cbd593-a066-4c05-abef-d3cc0bfe5554.rb:17: invalid multibyte char (US-ASCII)
f5cbd593-a066-4c05-abef-d3cc0bfe5554.rb:17: invalid multibyte char (US-ASCII)
please explain whats wrong
Thanks in Advance
1 Answer

Sam Donald
36,305 PointsIt looks good except for the missing ;
at the end. Though other tests pass with the missing semi-colon.
Try this:
EXPLAIN SELECT * FROM users WHERE first_name = 'Pasan';