$ 0 0 I ended up building the query as a string.doing it dynamically would have made it extremely bulky.