DatabaseException

Message
DB Error: syntax error: SELECT ao.offer_id FROM asc_company ac INNER JOIN asc_offer_company aoc ON ac.company_id = aoc.company_id INNER JOIN asc_offer ao ON aoc.offer_id = ao.offer_id WHERE ao.offer_url_name = 'signmeup' AND ac.company_id = [nativecode=1064 ** 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 6]

File
/var/www/server_master/master_include/exception_handler.php

Line
277

Stack Trace
#0 /var/www/server_master/master_include/database.class.php(599): pearErrorCallback()
#1 /var/www/server_master/master_include/database.class.php(508): database->error()
#2 /var/www/server_master/master_include/database.class.php(338): database->query_base()
#3 /var/www/html/company_signup.php(180): database->query_field()
#4 {main}