Help Creating 'where' statement
Ok, I think I see the issue. Try adding a $ to the variable named (typo in my original post):
'where' => " when_to_bill LIKE '%\t$monthNum\t%' ", // search for month num in tab delimited field,
If that doesn't work, try partial searches '%%' should return everything, '%12%' should return record 12 (or anything with a 12 in it). Then try them with tab characters, '%\t12\t%'. Basically, we want to see where it stops working.
Let me know how that goes!