fix bug with new efficient customer-finding code. sql isn't perl, null != 0