SELECT COUNT(*) AS cnt FROM videos WHERE active = true AND vid = '68E27' SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "68E27" LINE 1: ...(*) AS cnt FROM videos WHERE active = true AND vid = '68E27' ^