Free Classifieds Ads | Kuwait Classified | Kuwait - YepSell.com

SELECT a.adid,a.adtitle,a.cityid,a.subcatid,a.price_type,a.price_value,a.createdon, UNIX_TIMESTAMP(a.createdon) AS timestamp, ct.cityname, COUNT(*) AS piccount, p.picfile, scat.subcatname, cat.catid, cat.catname FROM list_ads a INNER JOIN list_cities ct ON a.cityid = ct.cityid INNER JOIN list_subcats scat ON a.subcatid = scat.subcatid INNER JOIN list_cats cat ON scat.catid = cat.catid LEFT OUTER JOIN list_adxfields axf ON a.adid = axf.adid LEFT OUTER JOIN list_adpics p ON a.adid = p.adid AND p.isevent = '0' and p.primary_image='1' WHERE a.enabled = '1' AND a.verified = '1' AND p.picfile <> '' AND a.expireson >= NOW() and a.show_in_home='1' GROUP BY a.adid ORDER BY a.adid DESC LIMIT 0, 8Table './demostfc_yepsell/list_ads' is marked as crashed and last (automatic?) repair failed