Looking at my SQL logs, here's the statement that's being generated:
- * Executing: SELECT ID FROM item_properties WHERE ItemProperty in (,11) and IsIllegal=1"
The problem is that the properties list isn't being generated properly. There's a comma before the first number in the list. That's not proper syntax. So, the root cause is something in the while loop above the actual SQL call that iterates through the properties of an item.
The question is, what property is returning a null value?
- while (GetIsItemPropertyValid(ipProperty))
{
- // construct the property type list
sProperties = comma + IntToString(GetItemPropertyType(ipProperty));
// get the next property on the item
ipProperty = GetNextItemProperty(oItem); comma = ",";
}
Is it a custom item property that we've added through HAKs? I'll have to poke around and test it tonight.