$checkPoint = time() - (5 * 60);

$sql = "DELETE FROM posts WHERE date_created < ".$checkPoint;