Error : Invalid query : SELECT * FROM view_post WHERE id = '' :: Lost connection to MySQL server during query