You have an error in your SQL syntax near 'or merchant_category_id2 = ) AND merchant_html_code <> '')' at line 1