Query: sql = "SELECT * FROM images WHERE ID IN (SELECT jpgId FROM sales WHERE printed = 0)"
I'm getting the following error.
Type mismatch in expression.
Here is an image
of my tables. Obviously I want to fetch row marked "1" using the jpgId value from each row that is returned in the sales table (labeled "2")