(ERROR: invalid input syntax for integer: "" LINE 1: ...ag_id IN (SELECT id FROM tags WHERE jugador_id = '') ORDER ... ^)