select * from tbl_unpaidorders where unpaidordr_msgstatus = '0' and TIMEDIFF(NOW(),unpaidordr_datetime) >= '00:10:00'