[Phoo]: Fixed sql error