I am testing the plugin on our LMS but we are one of the few with a Windows and SQL Server backend. I had to modify the queries in the condition.php to use TOP 1 rather than limit. I'm not sure what is the best fix in this case for global support.
SELECT TOP 1 ue.timestart
FROM {user_enrolments} ue
JOIN {enrol} e on ue.enrolid = e.id
WHERE e.courseid = :courseid AND ue.userid = :userid AND ue.timestart > 0
ORDER by ue.timestart DESC
I am testing the plugin on our LMS but we are one of the few with a Windows and SQL Server backend. I had to modify the queries in the condition.php to use TOP 1 rather than limit. I'm not sure what is the best fix in this case for global support.
SELECT TOP 1 ue.timestart FROM {user_enrolments} ue JOIN {enrol} e on ue.enrolid = e.id WHERE e.courseid = :courseid AND ue.userid = :userid AND ue.timestart > 0 ORDER by ue.timestart DESC