500 | Internal Server Error | Doctrine_Connection_Mysql_Exception

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 '-1' at line 1. Failing Query: "SELECT a.id AS a__id FROM a_edificis a WHERE (a.poblacio LIKE '%castell%C3%B3%') ORDER BY a.id LIMIT 1 OFFSET -1"

stack trace

symfony settings ...

request ...

response ...

user ...

global vars ...