MySQL help do I use Where not exist or Join? - Laravel
SELECT 
    u1.id,
    u1.domain,
    t1.end_date

FROM urls u1
INNER JOIN 
        (SELECT 
            l1.urls_id,
            MIN(end_date) as end_date       
         FROM urls u2 
         INNER JOIN links l1 
             ON u2.id = l1.urls_id 
            AND l1.status = "Approved" 
            AND (l1.end_date &gt; now() OR l1.end_date IS NOT NULL)
         GROUP BY l1.urls_id) t1
ON u1.id = t1.urls_id


Source requirements (not 100% sure about p4, so this could be changed): 

1). end_date NOT NULL  AND
2). end_date &gt; now()   
3). status is "Approved" AND
4). return latest end_date closer to present or now.