Errore PostGres --> ERROR: invalid input syntax for integer: "$1" LINE 6: WHERE "s"."species_code" = '$1' LIMIT 1 ^