Fixed #EZP-23324: eZURL SQL error on postgres

Casted $id to integer.