This is my mysql table
----- ----------- -------------------
b_id update_time update_time_text
----- ----------- -------------------
A:340 1436507350 10-07-2015 11:19:10
A:340 1436507707 10-07-2015 11:25:07
A:340 1436509704 10-07-2015 11:58:24
A:340 1436507828 10-07-2015 11:27:08
And this is my query
SELECT * FROM table WHERE b_id='A:340' AND update_time < (NOW() - 120) // 120 is 2 minutes
How do i select records in the last 2 mintues since my query is returning empty records and i'm not sure if i have to take unix time(update_time) or the readable time(update_time_text)