that was just a typo in here.
I did get it working though. But I did not change anything. my SQL guru friend informed me that `where (a OR b) AND (c OR d)` syntax is fine. I tried running the query again and it worked.
Though I am still a little confused as the first 10 times I ran it, it would not work and even typing a similar query in phpMyAdmin would give and error, and where it highlights the code you put in, it was attempting to add a `limit` clause in the middle of the where_clause. It is working ok now though. Not sure what was up.