Move up from Sub-query to the main the following:
(CNT_B-SUM_AB) AS UNIQUE_B,
(0.035*3*CNT_B+MAX_PRICE) AS COSTI,
Because you are trying to call an Alias from a Computed Aggregate
function by itself.
So that you will have this:
SELECT A.B_ID,
B.CNT_B,
B.MAX_PRICE,
B.SUM_AB,
B.SUM_C_AB,
B.CNT_B-B.SUM_AB AS UNIQUE_B,
(0.035*3*B.CNT_B+B.MAX_PRICE) AS COSTI,
B.COUNTDOWN,
A.AUCT_ID
FROM MONITOR A
INNER JOIN
(SELECT B_ID,
COUNT(B_ID) AS CNT_B,
MAX(PREZZO_ATTUALE) AS MAX_PRICE,
SUM(TOT_PUNT_AB) AS SUM_AB,
SUM(TOT_CAMBI_AB) AS SUM_C_AB,
45-SUM(CONT_PROVV_AB) AS COUNTDOWN
FROM MONITOR
WHERE AUCT_ID = '3453015'
GROUP BY B_ID) B
ON A.B_ID= B.B_ID
WHERE A.AUCT_ID = '3453015'
ORDER BY B.MAX_PRICE DESC,
B.CNT_B DESC
See SQLFiddle