#0 {closure}(1024, HY000 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. select * from wtw_page where ( ((wtw_page.`lang_code` = 'NL') and (wtw_page.`active` = '1') and (wtw_page.`menu_nr` = 1) ) ) order by wtw_page.`menu_nr` asc, wtw_page.`record_nr` asc, /home/wtw-filters.nl/app/domain/lib/sql_database/db_drivers/pdo_db_driver.php, 43, Array ([sql] => select * from wtw_page where ( ((wtw_page.`lang_code` = 'NL') and (wtw_page.`active` = '1') and (wtw_page.`menu_nr` = 1) ) ) order by wtw_page.`menu_nr` asc, wtw_page.`record_nr` asc,[return_records] => 1,[label] => ,[st] => PDOStatement Object ([queryString] => select * from wtw_page where ( ((wtw_page.`lang_code` = 'NL') and (wtw_page.`active` = '1') and (wtw_page.`menu_nr` = 1) ) ) order by wtw_page.`menu_nr` asc, wtw_page.`record_nr` asc))) #1 trigger_error(HY000 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. select * from wtw_page where ( ((wtw_page.`lang_code` = 'NL') and (wtw_page.`active` = '1') and (wtw_page.`menu_nr` = 1) ) ) order by wtw_page.`menu_nr` asc, wtw_page.`record_nr` asc) called at [/home/wtw-filters.nl/app/domain/lib/sql_database/db_drivers/pdo_db_driver.php:43] #2 pdo_db_driver->execute(select * from wtw_page where ( ((wtw_page.`lang_code` = 'NL') and (wtw_page.`active` = '1') and (wtw_page.`menu_nr` = 1) ) ) order by wtw_page.`menu_nr` asc, wtw_page.`record_nr` asc, 1, ) called at [/home/wtw-filters.nl/app/domain/lib/sql_database/sql_database.php:152] #3 sql_database->execute(select * from wtw_page where ( ((wtw_page.`lang_code` = 'NL') and (wtw_page.`active` = '1') and (wtw_page.`menu_nr` = 1) ) ) order by wtw_page.`menu_nr` asc, wtw_page.`record_nr` asc, 1) called at [/home/wtw-filters.nl/app/domain/lib/sql_database/sql_database.php:242] #4 sql_database->select(select * from wtw_page where ( ((wtw_page.`lang_code` = 'NL') and (wtw_page.`active` = '1') and (wtw_page.`menu_nr` = 1) ) ) order by wtw_page.`menu_nr` asc, wtw_page.`record_nr` asc) called at [/home/wtw-filters.nl/app/domain/lib/domain/domain_object_mapper.php:313] #5 domain_object_mapper->select(domain_query Object ([*rules] => Array ([0] => stdClass Object ([type] => condition,[name] => lang_code,[operand] => =,[value] => NL),[1] => stdClass Object ([type] => condition,[name] => active,[operand] => =,[value] => 1),[2] => stdClass Object ([type] => condition,[name] => menu_nr,[operand] => =,[value] => 1),[3] => stdClass Object ([type] => order_by,[name] => menu_nr,[direction] => asc),[4] => stdClass Object ([type] => order_by,[name] => record_nr,[direction] => asc)),[*joins] => Array (),[*limit_start] => 0,[*limit_count] => 0,[domain_queryselect_field_names] => ), ) called at [/home/wtw-filters.nl/app/domain/lib/domain/domain_object_database.php:76] #6 domain_object_database->select(page, domain_query Object ([*rules] => Array ([0] => stdClass Object ([type] => condition,[name] => lang_code,[operand] => =,[value] => NL),[1] => stdClass Object ([type] => condition,[name] => active,[operand] => =,[value] => 1),[2] => stdClass Object ([type] => condition,[name] => menu_nr,[operand] => =,[value] => 1),[3] => stdClass Object ([type] => order_by,[name] => menu_nr,[direction] => asc),[4] => stdClass Object ([type] => order_by,[name] => record_nr,[direction] => asc)),[*joins] => Array (),[*limit_start] => 0,[*limit_count] => 0,[domain_queryselect_field_names] => ), ) called at [/home/wtw-filters.nl/app/domain/lib/domain/domain_object_repository.php:37] #7 domain_object_repository->select_by_query(domain_query Object ([*rules] => Array ([0] => stdClass Object ([type] => condition,[name] => lang_code,[operand] => =,[value] => NL),[1] => stdClass Object ([type] => condition,[name] => active,[operand] => =,[value] => 1),[2] => stdClass Object ([type] => condition,[name] => menu_nr,[operand] => =,[value] => 1),[3] => stdClass Object ([type] => order_by,[name] => menu_nr,[direction] => asc),[4] => stdClass Object ([type] => order_by,[name] => record_nr,[direction] => asc)),[*joins] => Array (),[*limit_start] => 0,[*limit_count] => 0,[domain_queryselect_field_names] => ), ) called at [/home/wtw-filters.nl/app/domain/repositories/page/page_repository.php:55] #8 page_repository->select_by_menu(1, NL) called at [/home/wtw-filters.nl/app/webservices/sections/wtw-filters/html/wt_layout_view.php:383] #9 wt_layout_view->footer() called at [/home/wtw-filters.nl/app/webservices/sections/wtw-filters/html/wt_layout_view.php:126] #10 wt_layout_view->render() called at [/home/wtw-filters.nl/app/webservices/sections/wtw-filters/wt_html_output_builder.php:14] #11 wt_html_output_builder->get_body() called at [/home/wtw-filters.nl/app/webservices/lib/output/output.php:168] #12 output->flush(1) called at [/home/wtw-filters.nl/app/app_run.php:83] #13 {closure}() fout: HY000 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. select * from wtw_page where ( ((wtw_page.`lang_code` = 'NL') and (wtw_page.`active` = '1') and (wtw_page.`menu_nr` = 1) ) ) order by wtw_page.`menu_nr` asc, wtw_page.`record_nr` asc