error SQL Query-->SELECT daigaku_program_tbl.* FROM daigaku_program_tbl INNER JOIN agent_tbl ag ON ag.agent_sid = daigaku_program_tbl.agent_sid INNER JOIN agent_daigaku_tbl agk ON agk.auth_sid = ag.auth_sid WHERE daigaku_program_tbl.style_sid = %27%20+%20entry.link%20+%20%27 AND daigaku_program_tbl.open_setting = 1 AND ( daigaku_program_tbl.style_sid <= 3 OR daigaku_program_tbl.style_sid >= 7 ) AND agk.daigaku_contract_begin <= '2019-09-17' AND agk.daigaku_contract_end >= '2019-09-17' ORDER BY sort ASC LIMIT 20 OFFSET 0

error Messaeg--> SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "%" LINE 6: WHERE daigaku_program_tbl.style_sid = %27%20+%20entry... ^