You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the error
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 ''10' OFFSET '0'' at line 1' in /media/sf_pattegufv3/index.php:29 Stack trace: #0 [internal function]: PDOStatement->execute() #1 [internal function]: Phalcon\Db\Adapter\Pdo->executePrepared(Object(PDOStatement), Array, NULL) #2 [internal function]: Phalcon\Db\Adapter\Pdo->query('SELECT p.id...', Array, NULL) #3 [internal function]: Phalcon\Mvc\Model\Query->_executeSelect(Array, Array, NULL) #4 [internal function]: Phalcon\Mvc\Model\Query->execute(Array, NULL) #5 /media/sf_pattegufv3/index.php(29): Phalcon\Mvc\Model\Manager->executeQuery('SELECT p.id, p....', Array) #6 [internal function]: {closure}() #7 /media/sf_pattegufv3/index.php(58): Phalcon\Mvc\Micro->handle() #8 {main} thrown in /media/sf_pattegufv3/index.php on line 29
When i change :limit: and :offset: to the numbers up in my function() does it works like a charm.
don't mind the filename it was just to test if the problem was with a string too.
The text was updated successfully, but these errors were encountered:
Hi.
I am trying to do a simple query on my table i have.
i am trying to set a limit and offset but i get errors.
my code i'm running
the error
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 ''10' OFFSET '0'' at line 1' in /media/sf_pattegufv3/index.php:29 Stack trace: #0 [internal function]: PDOStatement->execute() #1 [internal function]: Phalcon\Db\Adapter\Pdo->executePrepared(Object(PDOStatement), Array, NULL) #2 [internal function]: Phalcon\Db\Adapter\Pdo->query('SELECT
p
.id
...', Array, NULL) #3 [internal function]: Phalcon\Mvc\Model\Query->_executeSelect(Array, Array, NULL) #4 [internal function]: Phalcon\Mvc\Model\Query->execute(Array, NULL) #5 /media/sf_pattegufv3/index.php(29): Phalcon\Mvc\Model\Manager->executeQuery('SELECT p.id, p....', Array) #6 [internal function]: {closure}() #7 /media/sf_pattegufv3/index.php(58): Phalcon\Mvc\Micro->handle() #8 {main} thrown in /media/sf_pattegufv3/index.php on line 29When i change :limit: and :offset: to the numbers up in my function() does it works like a charm.
don't mind the filename it was just to test if the problem was with a string too.
The text was updated successfully, but these errors were encountered: