What is this? :-
Code:
MasterBase.MasterBaseQuery
The problem is probably there.