Ver originalSELECT SUM(if(action=1,1,0)) as impresion,SUM(if(action=2,1,0)) as clic,SUM(if(action=3,1,0)) as conversionFROM ads_tracking_historyWHERE DATE_FORMAT(TH.DATE, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d');