Evenements special a venir
SELECT a.*, UNIX_TIMESTAMP(a.starton) AS starton_ts, UNIX_TIMESTAMP(a.endon) AS endon_ts, feat.adid AS isfeat,
COUNT(*) AS piccount, p.picfile AS picfile, ct.cityname
FROM phpas_events a
INNER JOIN phpas_featured feat ON a.adid = feat.adid AND feat.adtype = 'E' AND feat.featuredtill >= NOW()
INNER JOIN phpas_cities ct ON a.cityid = ct.cityid
LEFT OUTER JOIN phpas_adpics p ON a.adid = p.adid AND p.isevent = '1'
WHERE a.enabled = '1' AND a.verified = '1' AND a.expireson >= NOW()
AND a.cityid = 39
AND a.starton >= NOW()
GROUP BY a.adid
ORDER BY a.starton ASC
LIMIT 5Can't create/write to file '/tmp/#sql_346_0.MAI' (Errcode: 28 "No space left on device")