Le cittą pił "cliccate"

  • Bari
  • Bergamo
  • Bologna
  • Brescia
  • Firenze
  • Lecce
  • Lecco
  • Milano
  • Ancona
  • Arezzo
  • Caserta
  • Avellino
  • Modena
  • Napoli
  • Verona
  • Varese
  • Torino
  • Perugia
  • Como
  • Roma
SELECT a.*, UNIX_TIMESTAMP(a.createdon) AS timestamp, ct.cityname, COUNT(*) AS piccount, p.picfile, scat.subcatname, cat.catid, cat.catname FROM webtre_ads a INNER JOIN webtre_cities ct ON a.cityid = ct.cityid INNER JOIN webtre_subcats scat ON a.subcatid = scat.subcatid INNER JOIN webtre_cats cat ON scat.catid = cat.catid LEFT OUTER JOIN webtre_adxfields axf ON a.adid = axf.adid LEFT OUTER JOIN webtre_adpics p ON a.adid = p.adid AND p.isevent = '0' LEFT OUTER JOIN webtre_featured feat ON a.adid = feat.adid AND feat.adtype = 'A' WHERE 1 AND a.enabled = '1' AND a.verified = '1' AND a.expireson >= NOW() AND a.paid <> '0' AND (feat.adid IS NULL OR feat.featuredtill < NOW()) GROUP BY a.adid /*ORDER BY a.createdon DESC*/ ORDER BY RAND () LIMIT 0, 20Got error 28 from storage engine