Select Challenge

WordPress database error: [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 BINARY `admin_id`= UNION SELECT 1 AS opted, `quiz_id`,`quiz_tag`,`quiz_title' at line 3]
SELECT 0 AS opted, `quiz_id`,`quiz_tag`,`quiz_title`,`active`, "" AS optName FROM `wp_9if2ry_quizzes` as qz WHERE BINARY `comp_int_id` = AND BINARY `admin_id`= UNION SELECT 1 AS opted, `quiz_id`,`quiz_tag`,`quiz_title`,`active`,opt.opt_name AS optName FROM `wp_9if2ry_quizzes` as qz, `wp_9if2ry_topics` as top, `wp_9if2ry_topic_cats` as tc, `wp_9if2ry_categories` as cat,`wp_9if2ry_opt_ins` as opt WHERE BINARY qz.`comp_int_id` = 0 AND BINARY `active`= TRUE AND BINARY top.topic_id = qz.topic_id AND BINARY top.topic_id = tc.topic_id AND BINARY tc.cat_id = cat.cat_id AND BINARY cat.opt_int_id = opt.opt_int_id AND BINARY cat.opt_int_id IN ORDER BY `optName`,`quiz_title`,`quiz_tag`