Seems not always to work like it should, I'm getting this message, now the 3rd time:
Code:
SELECT user.username, session.useragent, session.location, session.lastactivity, user.userid
FROM session AS session
LEFT JOIN user AS user USING (userid)
WHERE session.lastactivity >;
MySQL Error : 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 '' at line 4
It seems that $datecut is not always filled out.