Thaliada, yes, the first line of the php code plugin does indeed start with that code.
The other pm plugins i have installed are:
Calculate Percentage of PM Quota Used
I don't think this will be useful, but i also had installed at one point
Private Message Attachments v1.53 but then i uninstalled it completely because it wasn't compatible. I tried uninstalling and re-installing PM search after this but i still get the same SQL error.
I also installed
vbAnonymyzer, version 2.5, which basically works to change URL's, but i disabled this plugin and tried getting PM Search to work, and same prob again. I didn't update to vbanon 2.7 yet but i don't think that would fix the problem.
Any ideas what the conflict may be?