I've turned on logging SQL statements, but they aren't being logged in the errors.log file. Is there somewhere else I should look?
This relates to another issue I'm having with the advanced search. Sometime after we upgraded to 1.1 and installed a custom theme, our advanced search isn't working anymore. The 'contain' statements are fine, but 'does not contain' only filters out some of the items not all of them. For instance if I write "Type does not contain dance" and "Type contains cards", one of the first records I get is a dance card (http://alanis.simmons.edu/daisie/).
The SQL statement work fine when written directly in MySQL, so it seems to be a php issue. I've looked at the ItemSearch.php file in application/models, but can't figure out what its actually writing. Any ideas?

