Error

The following error occured:

Magus::Event can't SELECT events.* FROM events,ports 
WHERE events.port=ports.id AND run=? AND machine=? ORDER BY time DESC
: DBD::Pg::st execute failed: ERROR:  invalid input syntax for integer: "'" [for Statement "SELECT events.* FROM events,ports 
WHERE events.port=ports.id AND run=? AND machine=? ORDER BY time DESC
" with ParamValues: 1=undef, 2='''] at /usr/local/lib/perl5/site_perl/5.26.0/DBIx/ContextualFetch.pm line 52.
 at /home/mbsd/magus/index.cgi line 521.