The error is in your SQL statement - you are trying to compare two different data types (eg: a String against a numeric field).

What data types are your course_number and section_number fields?

For String/Text fields, you need single quotes around the value (as you have for course_number), and for numeric data types you dont (as you have for section_number).