Query:
select 
    (@rownum:= @rownum + 1) as row_number 
from 
    (select * from information_schema.tables limit 25) t,
    (select @rownum := (date_format('2018-12-16 00:00:00','%k'))) r;
Getting a syntax error in MySQL 8, but not in MySQL 5.7.
Please help.
 
     
    