Using:
SELECT `id`,
`hits` + `other_hits` AS `total_hits`
FROM `something`
HAVING `total_hits` > 30
Earliest MySQL allows column aliases to be referenced - this is a sentence GROUP BY; after support links ( HAVING, ORDER BY). Most other databases do not support the reference to the table alias before ORDER BY, which usually requires the use of a view / inline view:
SELECT t.id, t.total_hits
FROM (SELECT `id`,
`hits` + `other_hits` AS `total_hits`
FROM `something`) t
WHERE t.total_hits > 30
WHERE:
SELECT `id`,
`hits` + `other_hits` AS `total_hits`
FROM `something`
WHERE `hits` + `other_hits` > 30