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 'union select 1 as sp, b.courseId as ID,b.Title,b.CourseId,b.id as sid, b' at line 3