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 'AS srch_kywd , 'OR_KYWD' AS Query_Type FROM `searched_kewyord_category_' at line 7