Ok what's wrong with this SQL query:
select j.* from judge as j
left join user as u on j.user_id = u.id
where u.email="john@example.com";
ERROR: column "john@example.com" does not exist
Ok what's wrong with this SQL query:
select j.* from judge as j
left join user as u on j.user_id = u.id
where u.email="john@example.com";
ERROR: column "john@example.com" does not exist
You are using double quotes where you should actually be using single quotes. Single quotes denote values, while double quotes represent columns and tables, etc. You can find out more about the difference here.