Check that joins in a given SQL statement match your schema and you aren't joining on the wrong columns by mistake.