SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "" LINE 1: SELECT * FROM phpbb_topics WHERE topic_id = '' ^