SELECT  c.recordid  FROM mdl_data_content c,mdl_data_records r,mdl_data_content cs, mdl_user u , mdl_data_content c144 , mdl_data_content c145 , mdl_data_content c146 , mdl_data_content c147 , mdl_data_content c148 , mdl_data_content c149 , mdl_data_content c150 , mdl_data_content c151 , mdl_data_content c152 , mdl_data_content c153 , mdl_data_content c155 , mdl_data_content c156  WHERE c.recordid = r.id
                         AND r.dataid = 16
                         AND r.userid = u.id
                         AND cs.recordid = r.id  AND c144.recordid = r.id AND c145.recordid = r.id AND c146.recordid = r.id AND c147.recordid = r.id AND c148.recordid = r.id AND c149.recordid = r.id AND c150.recordid = r.id AND c151.recordid = r.id AND c152.recordid = r.id AND c153.recordid = r.id AND c155.recordid = r.id AND c156.recordid = r.id;
