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