2
SQL command:
SELECT message, count(message) as amount
FROM `messages`
WHERE LENGTH(message) >= 4 AND amount < 30 AND message != '#ddd' AND message != 'ddd'
GROUP BY message
ORDER BY amount DESC
LIMIT 3
#1054 - Unknown column 'amount' in 'Where clause'
why it does not identify the amount being that it was set early on?
@rray Hi? this code is not mine and I am a layman..
– Vinícius Lara
@user3163662 Disregard what I wrote, it counts yes, the response (updated) of the actual rray is correct (example).
– mgibsonbr