maybe sql AS is the problem