How to write a sql query to find out that there are 2 days left before the current date. In php, this can be done via:
sql
$res[\'end_date\'] - time