there are two `OR`

...`WHERE s.sessid = '$sessionId' OR OR DATE_ADD(`...