SELECT SQL_CALC_FOUND_ROWS `rbt`.* FROM `content_vitrin`.`rbt` WHERE (active = 1) ORDER BY length(contentid) DESC , contentid DESC LIMIT 40