Postgresql Cannot Cast Type Interval To Integer Phpark21