Fixed a bug in the SQL WHERE clause, which arose in semijoins of tables with no common attributes.