MySQL Error Occured
1064: 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 '1' ORDER BY option_id ASC' at line 1

QUERY = SELECT DISTINCT CubeCart_options_bot.option_id FROM CubeCart_options_bot INNER JOIN CubeCart_options_top ON CubeCart_options_bot.option_id = CubeCart_options_top.option_id INNER JOIN CubeCart_inventory ON CubeCart_options_bot.product = CubeCart_inventory.productId WHERE man='87 AND show_on_filter='1' ORDER BY option_id ASC