I am getting the error
BIGINT UNSIGNED value is out of range in \'(1301980250 - mydb.news_articles.date)\'
mydb
news_articles
date
maybe you can use cast
cast
SELECT *, ((1 / log(1301980250 - cast(date AS SIGNED))) * 175) as weight FROM news_articles ORDER BY weight;