So I've got a basic query here selecting between a date range. It seems to be taking a (relatively long time to process) I was wondering what I can do to improve the processing time. Here is the query.
SELECT h.id as hid,h.created_on,u.id as uid,u.fname,u.lname,u.email
FROM hud h
LEFT JOIN user_hud uh on h.id = uh.hid
LEFT JOIN users u on u.id = uh.uid
WHERE
h.created_on
BETWEEN DATE_SUB( CURDATE( ) ,INTERVAL 12 MONTH )
AND DATE_SUB( CURDATE( ) ,INTERVAL 7 DAY)