The query I\'m running is as follows, however I\'m getting this error:
#1054 - Unknown column \'guaranteed_postcode\' in \'IN/ALL/ANY subquery\' <
#1054 - Unknown column \'guaranteed_postcode\' in \'IN/ALL/ANY subquery\'
Maybe my answer is too late but this can help others.
You can enclose it with another select statement and use where clause to it.
SELECT * FROM (Select col1, col2,...) as t WHERE t.calcAlias > 0
calcAlias is the alias column that was calculated.