error SQL Query-->SELECT * FROM agent_tbl WHERE agent_sid = %27%20+%20entry.link%20+%20%27

error Messaeg--> SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "%" LINE 1: SELECT * FROM agent_tbl WHERE agent_sid = %27%20+%20entry.l... ^