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 ') AND CubeCart_omada_idx.cat_id = '21' ORDER BY cat_father_id, cat_name ASC' at line 1

QUERY = SELECT * FROM CubeCart_omada_idx INNER JOIN CubeCart_category ON CubeCart_omada_idx.omada_id=CubeCart_category.cat_id WHERE marry_id IN () AND CubeCart_omada_idx.cat_id = '21' ORDER BY cat_father_id, cat_name ASC