Post the bit of code that is building the query.