DB/Conditions: Fix a mistake in sql.