Error No: 1064 - MySQL error 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
Query:
UPDATE advertentie SET no_views=no_views+1 WHERE advertentie_id=
#0 /var/www/tip4.tagsite.nl/public_html/classes/Mysql.php(272): Mysql->execute('UPDATE adverten...')
#1 /var/www/tip4.tagsite.nl/public_html/classes/class.advertentie.php(142): Mysql->crease(NULL, 'no_views', 1)
#2 /var/www/tip4.tagsite.nl/public_html/classes/class.advertentie.php(74): Advertentie->addView(NULL)
#3 /var/www/tip4.tagsite.nl/public_html/controllers/show.php(281): Advertentie->getAdvertentie(Array)
#4 /var/www/tip4.tagsite.nl/public_html/controllers/show.php(2545): Show->c_frontpage()
#5 /var/www/tip4.tagsite.nl/public_html/controllers/show.php(2561): Show->__construct(Object(mysqli))
#6 /var/www/tip4.tagsite.nl/public_html/index.php(12): include_once('/var/www/tip4.t...')
#7 {main}
In Hillegom is de Hillegommerbrug gestremd. Op de foto van @POL_Hmeer is duidelijk te zien waarompic.twitter.com/bcLjtJUiau
— Rijkswaterstaat Verkeersinformatie (@RWSverkeersinfo) February 15, 2016
Vrachtwagen chauffeur komt met de schrik vrij bij bizar ongeval #Oudedijk #Odiliapeel pic.twitter.com/FUmMwfEw89
— 112brabantnieuws (@112brabantnieuw) February 15, 2016
@gluttnous so i found evidence of aliens attacking big rigs otherwise i have no idea how this happened pic.twitter.com/DN51ve5iQq
— jason trunnelle (@pungchow1) February 12, 2016
#Ongeval #Thomassentunnel richting Maasvlakte. Personenauto vs vrachtwagen. #ravage pic.twitter.com/xtOvs5KmPC
— Berging A.Barendregt (@ABarendregtBV) February 15, 2016
Bij een grote kettingbotsing in de staat Pennsylvania zijn zeker drie doden gevallen: https://t.co/4T3CHQ4lUt pic.twitter.com/iAmYwWQi2X
— NOS (@NOS) February 13, 2016
Flinke klap op 🅿 langs de #A1 bij Naarden. Gelukkig was 't Dixi-toilet op dat moment niet bezet... (@WIS_Eddie) pic.twitter.com/CMNLr2YXP6
— Rijkswaterstaat Verkeersinformatie (@RWSverkeersinfo) February 13, 2016
Nederlandse #vrachtwagen met aardappelrooier knalt tegen Duitse spoorbrug +foto's https://t.co/co05CGiNyV pic.twitter.com/xXr4k55l6n
— Transport Online (@transportonline) February 12, 2016