2023-07-17 02:20:10 manageCourse.php (19) checking tablename : semester 2023-07-17 02:20:11 manageCourse.php (53) checking tablename : course & offer 2023-07-17 02:20:11 manageCourse.php (19) checking tablename : semester 2023-07-17 02:20:11 manageCourse.php (99) checking tablename : course & offer 2023-07-17 02:20:11 manageCourse.php (101) checking semester : 1000006 2023-07-17 02:20:11 manageCourse.php (102) filter Dep : 2023-07-17 02:20:11 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:39:43 manageCourse.php (19) checking tablename : semester 2023-07-17 11:39:43 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:39:43 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:39:43 manageCourse.php (102) filter Dep : 2023-07-17 11:39:43 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:39:43 manageCourse.php (19) checking tablename : semester 2023-07-17 11:39:43 manageCourse.php (53) checking tablename : course & offer 2023-07-17 11:40:08 manageCourse.php (19) checking tablename : semester 2023-07-17 11:40:08 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:40:08 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:40:08 manageCourse.php (102) filter Dep : 2023-07-17 11:40:08 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:40:15 manageCourse.php (19) checking tablename : semester 2023-07-17 11:40:15 manageCourse.php (53) checking tablename : course & offer 2023-07-17 11:40:15 manageCourse.php (19) checking tablename : semester 2023-07-17 11:40:15 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:40:15 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:40:15 manageCourse.php (102) filter Dep : 2023-07-17 11:40:15 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:40:27 manageCourse.php (19) checking tablename : semester 2023-07-17 11:40:27 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:40:27 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:40:27 manageCourse.php (102) filter Dep : 2023-07-17 11:40:27 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:40:39 manageCourse.php (19) checking tablename : semester 2023-07-17 11:40:39 manageCourse.php (220) checking tablename : course 2023-07-17 11:40:39 manageCourse.php (221) checking course Id : 1000007 2023-07-17 11:40:50 manageCourse.php (19) checking tablename : semester 2023-07-17 11:40:50 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:40:50 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:40:50 manageCourse.php (102) filter Dep : 2023-07-17 11:40:50 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:40:53 manageCourse.php (19) checking tablename : semester 2023-07-17 11:40:53 manageCourse.php (220) checking tablename : course 2023-07-17 11:40:53 manageCourse.php (221) checking course Id : 1000010 2023-07-17 11:41:13 manageCourse.php (19) checking tablename : semester 2023-07-17 11:41:13 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:41:13 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:41:13 manageCourse.php (102) filter Dep : 2023-07-17 11:41:13 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:41:15 manageCourse.php (19) checking tablename : semester 2023-07-17 11:41:15 manageCourse.php (220) checking tablename : course 2023-07-17 11:41:15 manageCourse.php (221) checking course Id : 1000003 2023-07-17 11:41:23 manageCourse.php (19) checking tablename : semester 2023-07-17 11:41:23 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:41:23 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:41:23 manageCourse.php (102) filter Dep : 2023-07-17 11:41:23 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:41:25 manageCourse.php (19) checking tablename : semester 2023-07-17 11:41:25 manageCourse.php (220) checking tablename : course 2023-07-17 11:41:25 manageCourse.php (221) checking course Id : 1000006 2023-07-17 11:41:39 manageCourse.php (19) checking tablename : semester 2023-07-17 11:41:39 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:41:39 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:41:39 manageCourse.php (102) filter Dep : 2023-07-17 11:41:39 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:41:56 manageCourse.php (19) checking tablename : semester 2023-07-17 11:41:56 manageCourse.php (53) checking tablename : course & offer 2023-07-17 11:41:56 manageCourse.php (19) checking tablename : semester 2023-07-17 11:41:56 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:41:56 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:41:56 manageCourse.php (102) filter Dep : 2023-07-17 11:41:56 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:42:04 manageCourse.php (19) checking tablename : semester 2023-07-17 11:42:04 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:42:04 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:42:04 manageCourse.php (102) filter Dep : IS 2023-07-17 11:42:04 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? AND department = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:42:06 manageCourse.php (19) checking tablename : semester 2023-07-17 11:42:06 manageCourse.php (53) checking tablename : course & offer 2023-07-17 11:42:06 manageCourse.php (19) checking tablename : semester 2023-07-17 11:42:06 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:42:06 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:42:06 manageCourse.php (102) filter Dep : 2023-07-17 11:42:06 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:45:43 manageCourse.php (19) checking tablename : semester 2023-07-17 11:45:43 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:45:43 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:45:43 manageCourse.php (102) filter Dep : 2023-07-17 11:45:43 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:45:52 manageCourse.php (19) checking tablename : semester 2023-07-17 11:45:52 manageCourse.php (53) checking tablename : course & offer 2023-07-17 11:45:52 manageCourse.php (19) checking tablename : semester 2023-07-17 11:45:52 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:45:52 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:45:52 manageCourse.php (102) filter Dep : 2023-07-17 11:45:52 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:46:14 manageCourse.php (19) checking tablename : semester 2023-07-17 11:46:14 manageCourse.php (220) checking tablename : course 2023-07-17 11:46:14 manageCourse.php (221) checking course Id : 1000007 2023-07-17 11:46:27 manageCourse.php (19) checking tablename : semester 2023-07-17 11:46:27 manageCourse.php (53) checking tablename : course & offer 2023-07-17 11:46:27 manageCourse.php (19) checking tablename : semester 2023-07-17 11:46:27 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:46:27 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:46:27 manageCourse.php (102) filter Dep : 2023-07-17 11:46:27 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:46:31 manageCourse.php (19) checking tablename : semester 2023-07-17 11:46:31 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:46:31 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:46:31 manageCourse.php (102) filter Dep : 2023-07-17 11:46:31 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 11:46:39 manageCourse.php (19) checking tablename : semester 2023-07-17 11:46:39 manageCourse.php (53) checking tablename : course & offer 2023-07-17 11:46:39 manageCourse.php (19) checking tablename : semester 2023-07-17 11:46:39 manageCourse.php (99) checking tablename : course & offer 2023-07-17 11:46:39 manageCourse.php (101) checking semester : 1000006 2023-07-17 11:46:39 manageCourse.php (102) filter Dep : 2023-07-17 11:46:39 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 13:25:30 manageCourse.php (19) checking tablename : semester 2023-07-17 13:25:30 manageCourse.php (19) checking tablename : semester 2023-07-17 13:25:30 manageCourse.php (99) checking tablename : course & offer 2023-07-17 13:25:30 manageCourse.php (101) checking semester : 1000006 2023-07-17 13:25:30 manageCourse.php (102) filter Dep : 2023-07-17 13:25:30 manageCourse.php (53) checking tablename : course & offer 2023-07-17 13:25:30 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 13:36:39 manageCourse.php (19) checking tablename : semester 2023-07-17 13:36:39 manageCourse.php (53) checking tablename : course & offer 2023-07-17 13:36:39 manageCourse.php (19) checking tablename : semester 2023-07-17 13:36:39 manageCourse.php (99) checking tablename : course & offer 2023-07-17 13:36:39 manageCourse.php (101) checking semester : 1000006 2023-07-17 13:36:39 manageCourse.php (102) filter Dep : 2023-07-17 13:36:39 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 17:22:29 manageCourse.php (19) checking tablename : semester 2023-07-17 17:22:29 manageCourse.php (19) checking tablename : semester 2023-07-17 17:22:29 manageCourse.php (53) checking tablename : course & offer 2023-07-17 17:22:29 manageCourse.php (99) checking tablename : course & offer 2023-07-17 17:22:29 manageCourse.php (101) checking semester : 1000006 2023-07-17 17:22:29 manageCourse.php (102) filter Dep : 2023-07-17 17:22:29 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 17:22:53 manageCourse.php (19) checking tablename : semester 2023-07-17 17:22:53 manageCourse.php (53) checking tablename : course & offer 2023-07-17 17:22:53 manageCourse.php (19) checking tablename : semester 2023-07-17 17:22:53 manageCourse.php (99) checking tablename : course & offer 2023-07-17 17:22:53 manageCourse.php (101) checking semester : 1000006 2023-07-17 17:22:53 manageCourse.php (102) filter Dep : 2023-07-17 17:22:53 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 22:06:34 manageCourse.php (19) checking tablename : semester 2023-07-17 22:06:34 manageCourse.php (99) checking tablename : course & offer 2023-07-17 22:06:34 manageCourse.php (101) checking semester : 1000006 2023-07-17 22:06:34 manageCourse.php (102) filter Dep : 2023-07-17 22:06:34 manageCourse.php (167) sql : SELECT distinct c.courseId as cid, c.offerId as offId, c.courseImgPath, c.courseTitleTh, c.detail, null as enStatus FROM (SELECT c.courseId, o.offerId, c.courseImgPath, c.courseTitleTh, c.detail FROM course as c, offer as o WHERE o.courseId = c.courseId AND c.courseStatus = 1 AND o.offerStatus = 1 AND o.semesterId = ? ) as c LEFT JOIN (SELECT e.courseId, e.offerId, e.enrollmentStatus FROM enrollment as e, offer as o2 WHERE o2.offerId = e.offerId AND o2.semesterId = ? ) as en ON en.courseId = c.courseId; 2023-07-17 22:06:34 manageCourse.php (19) checking tablename : semester 2023-07-17 22:06:34 manageCourse.php (53) checking tablename : course & offer