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 'LIMIT 1' at line 126SELECT act_id,act_type_code, act_title,act_html_link,act_html_include FROM activities WHERE act_id= LIMIT 1;