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