Invalid query in BIDataSet::Gen_RSA()
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 (reizenfotos.deleted="n") ORDER BY reizenfotos.VolgNr' at line 1 Foutcode: 1064
Opgetreden in /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.Db_DataRows.php op regel 0

Stack trace:
#0 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.Db_DataRows.php(0): Db_DataRows::Gen_RSA()
#1 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.Db_DataRows.php(0): Db_DataRows->Gen_RSA()
#2 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.BIDataSet.php(0): Db_DataRows->Requery()
#3 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.BIDataSet.php(0): BIDataSet->genRecordset()
#4 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.Fotos.php(0): BIDataSet->__construct()
#5 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.ViewFotos.php(0): Fotos->getFotos()
#6 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.ViewZoekDetail.php(0): ViewFotos->__construct()
#7 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.ViewZoekDetail.php(0): ViewZoekDetail->getHtmlForFotos()
#8 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.ViewZoekDetail.php(0): ViewZoekDetail->getHtmlForReisDetails()
#9 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.ViewZoekDetail.php(0): ViewZoekDetail->renderHtml()
#10 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.BIViewController.php(0): ViewZoekDetail->__construct()
#11 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.BIController.php(0): BIViewController::factory()
#12 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/controller/dispatcher/class.BIDispatcher.php(0): BIController->dispatch()
#13 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/controller/class.BIFrontController.php(0): BIDispatcher->dispatch()
#14 /home/gardentours1/www.gardentours.nl/bookinn/bookinn/class.BiApi.php(0): BIFrontController->getView()
#15 /home/gardentours1/www.gardentours.nl/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php(373) : eval()'d code(3): BiApi->getView()
#16 /home/gardentours1/www.gardentours.nl/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php(373): eval()
#17 [internal function]: allow_php_in_posts::shortcode('', '
\nif (isse...', 'php') #18 /home/gardentours1/www.gardentours.nl/wp-includes/shortcodes.php(287): call_user_func(Array, '', '
\nif (isse...', 'php') #19 [internal function]: do_shortcode_tag(Array) #20 /home/gardentours1/www.gardentours.nl/wp-includes/shortcodes.php(201): preg_replace_callback('/\\[(\\[?)(embed|...', 'do_shortcode_ta...', '[php]
\nif ...') #21 [internal function]: do_shortcode('[php]
\nif ...') #22 /home/gardentours1/www.gardentours.nl/wp-includes/plugin.php(192): call_user_func_array('do_shortcode', Array) #23 /home/gardentours1/www.gardentours.nl/wp-includes/post-template.php(211): apply_filters('the_content', '[php]\r\nif (isse...') #24 /home/gardentours1/www.gardentours.nl/wp-content/themes/Gardentours/content-page.php(15): the_content() #25 /home/gardentours1/www.gardentours.nl/wp-includes/template.php(503): require('/home/gardentou...') #26 /home/gardentours1/www.gardentours.nl/wp-includes/template.php(477): load_template('/home/gardentou...', false) #27 /home/gardentours1/www.gardentours.nl/wp-includes/general-template.php(179): locate_template(Array, true, false) #28 /home/gardentours1/www.gardentours.nl/wp-content/themes/Gardentours/page.php(20): get_template_part('content', 'page') #29 /home/gardentours1/www.gardentours.nl/wp-includes/template-loader.php(74): include('/home/gardentou...') #30 /home/gardentours1/www.gardentours.nl/wp-blog-header.php(16): require_once('/home/gardentou...') #31 /home/gardentours1/www.gardentours.nl/index.php(17): require('/home/gardentou...') #32 {main}