You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '6 and (link_info like "%%%%%" or link_url like "%%%%%" or link_name like "%%%%' at line 1