MySqli - select from db based on time difference with CURTIME() or SUBTIME()
Ok, i 've found the solution and i want to share it with you.

SELECT * FROM tbl_name WHERE dt_column &lt; DATE_SUB(NOW(), INTERVAL 20 MINUTE)


This brings all entries were last login  was more than 20 mins in the past.