Videos
(SELECT * FROM `TABLE_NEWS`
WHERE `ONDATE` + 3600 * `ONTIME` + `ONMIN` * 60 <= 1731032516 AND (`OFFDATE` >= 1731032516 OR `OFFDATE` <= 0) AND `SECTION` = 'edit6543058b1c0ae' )
ORDER BY
IF(`SORTNUM`,`SORTNUM`,999999), `ONDATE` DESC
LIMIT 12 OFFSET 0
(SELECT * FROM `TABLE_NEWS`
WHERE `ONDATE` + 3600 * `ONTIME` + `ONMIN` * 60 <= 1731032517 AND (`OFFDATE` >= 1731032517 OR `OFFDATE` <= 0) AND `SECTION` = 'edit6543058b1c0ae' )
ORDER BY
IF(`SORTNUM`,`SORTNUM`,999999), `ONDATE` DESC
LIMIT 12 OFFSET 0