RsD0p9BK
5/12/2015 - 12:58 PM

oder_by__select.sql

-- ORDER BY (SELECT count(d.sad_id) as c FROM wifcms_mod_scan_sel_ads_fotos as d WHERE d.sad_id = s.sad_id GROUP BY d.sad_id) DESCLIMIT 50

-- http://stackoverflow.com/questions/813495/mysql-order-by-select-possible