I've got a query below and want to determine if you'll be able to have more than 1 result. I must obtain the 4 newest records.


select c.email,c.text,m.alertDataID  
from client_users as c, monitor_alerts as a, monitor_alerts_data as m
where c.id=a.userID and a.alertID=m.alertID and 
m.alertDataID = (SELECT alertDataID FROM monitor_alerts_data ORDER BY alertDataID DESC LIMIT 1) 

Use IN rather than =:

 ... and m.alertDataID IN (SELECT alertDataID FROM ...)

Also don't limit your subquery to LIMIT 1. You will need LIMIT 4 within the sub-query.