sorry was loking at the wrong error log. Geeklol reads.
Text Formatted Code
Wed Dec 3 15:15:27 2008 - 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE uid='2' AND sid='20081203150515184'' at line 1. SQL in question: SELECT COUNT(*) as cnt FROM WHERE uid='2' AND sid='20081203150515184'
still don't know how to fix it.