SELECT info_id, link_name, url_text FROM info WHERE site_section_id = AND info_active = '1' ORDER BY info_order 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 'AND info_active = '1' ORDER BY info_order' at line 1