Commands out of sync; you can't run this command now

For programming and general questions on Zend Framework

Commands out of sync; you can't run this command now

Postby orla4916 on Mon Sep 18, 2017 11:07 pm

Hello, i got this error when i execute 2 sql query, one next the other.. i am using tablegateway. So when i execute each one individualy it works! but not together

$noticias = $this->adapter->query("SELECT * FROM noticias WHERE status = 1");

$datos = $noticias->execute();

return $datos;

i have that code in a model, so i execute the same with another table and i got this errors.

Statement couldn't be produced with sql: SELECT * FROM noticias WHERE status = 1

File:
C:\wamp64\www\gobierno\vendor\zendframework\zend-db\src\Adapter\Driver\Mysqli\Statement.php:211
Message:
Commands out of sync; you can't run this command now

anybody knows why?
orla4916
 
Posts: 1
Joined: Mon Sep 18, 2017 11:02 pm

Return to Zend Framework

Who is online

Users browsing this forum: Google [Bot] and 3 guests