Unknown column 'tree_rec_id' in 'field list'SELECT * FROM (SELECT tree_rec_id ,COUNT(*) AS C FROM discuss WHERE discuss.country_code='qa' AND remove=0 AND hide=0 AND tree_rec_id>0 GROUP BY tree_rec_id ) AS X ORDER BY C DESC LIMIT 10