added addslashes() to wp_session_cleanup(). This is a little tricky.
I don't really like this solution. It WILL solve the symptoms of bad
mysql statements and it should not break anything else. HOWEVER
It doesn't really solve the issue. The issue is that session_id
is being set to a single quote somehow. THAT needs to be addressed.
Thank you Cody Mays (crxgames) for this patch.