SELECT *
FROM (
SELECT (
SELECT id
FROM soto ti
WHERE ti.loo = t1.loo
ORDER BY
ti.dd DESC, ti.id DESC
LIMIT 1
) lid
FROM (
SELECT DISTINCT loo
FROM soto
) t1
) ro, soto t2
WHERE t2.id = ro.lid
Monthly Archives: March 2015
Yii file_exists() not working (Solved)
file_exists(YiiBase::getPathOfAlias(‘webroot’).’/[folder name]/[file name]’);