This question (Parsing a boolean expression into a MySQL query in PHP - part 2) was closed.
I don't want to dispute the closing. However, before it was closed, someone posted an answer which I have tested and found to be working, and which I am unlikely to have been able to code myself, at least without an SQL course.
I would like to award a bounty - (how) can I do so?