Database queries working in preview but not in published site.

But similar queries work for more than half the items in the repeater and not for the other half. Kindly take a look at the developer’s console to see what I mean.