Newest Aircraft Type

The table below shows the detailed information sorted by the newest recorded aircraft type. Each aircraft type is grouped and is shown only once, the first time it flew nearby.

Fatal error: Uncaught PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type integer: "" LINE 1: SELECT squawk.* FROM squawk WHERE squawk.code = '' AND squaw... ^ in /var/www/html/fam/require/class.Spotter.php:2176 Stack trace: #0 /var/www/html/fam/require/class.Spotter.php(2176): PDOStatement->execute() #1 /var/www/html/fam/require/class.Spotter.php(613): Spotter->getSquawkUsage() #2 /var/www/html/fam/require/class.Spotter.php(1168): Spotter->getDataFromDB() #3 /var/www/html/fam/newest.php(128): Spotter->getNewestSpotterDataSortedByAircraftType() #4 {main} thrown in /var/www/html/fam/require/class.Spotter.php on line 2176