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