You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in /home/httpd/vhosts/ Stack trace: #0 /home/httpd/vhosts/ offer_job->buildDetail() #1 /home/httpd/vhosts/ include('/home/httpd/vho...') #2 /home/httpd/vhosts/ include('/home/httpd/vho...') #3 {main} thrown in /home/httpd/vhosts/ on line 44