|
||||
|
»
Out of resources when opening file '/tmp/#sql_c10_0.MYI' (Errcode: 24)SELECT scat.subcatid, scat.catid, COUNT(*) as adcnt
FROM phpas_ads a
INNER JOIN phpas_subcats scat ON scat.subcatid = a.subcatid AND (a.enabled = '1' AND a.verified = '1' AND a.expireson >= NOW())
INNER JOIN phpas_cats cat ON cat.catid = scat.catid
INNER JOIN phpas_cities ct ON a.cityid = ct.cityid
WHERE scat.enabled = '1' and
cheval=1
AND a.cityid = 25
GROUP BY a.subcatid |