Fatal error: Uncaught mysqli_sql_exception: 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 `m1`< ) or (`y1`= and `m1`>) or (`y1`= and `m1`= and `d1`>)) AND `course`.`' at line 2 in /home/blackbird/public_html/ar/filter_online1.php:127 Stack trace: #0 /home/blackbird/public_html/ar/filter_online1.php(127): mysqli_query(Object(mysqli), 'SELECT `course_...') #1 /home/blackbird/public_html/ar/programs-online/reference.php(3): include('/home/blackbird...') #2 /home/blackbird/public_html/ar/page/programs_view_online.php(38): include('/home/blackbird...') #3 /home/blackbird/public_html/ar/index.php(419): include('/home/blackbird...') #4 {main} thrown in /home/blackbird/public_html/ar/filter_online1.php on line 127