Please Log in to join the conversation.
( SELECT MAX( s.`time` ) FROM `#__session` AS s WHERE s.`userid` = u.`id` AND s.`guest` = 0 ) DESC
( SELECT COUNT(*) FROM `#__session` AS s WHERE s.`userid` = u.`id` AND s.`guest` = 0 ) > 0
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
( SELECT MAX( s.`time` ) FROM `#__session` AS s WHERE s.`userid` = u.`id` AND s.`guest` = 0 ) DESC, u.`lastvisitdate` DESC
Please Log in to join the conversation.
Please Log in to join the conversation.