Database_Exception [ 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 'AND principale <> 1' at line 4 [ SELECT immobili_immagini.nome FROM immobili_immagini WHERE id_immobile = AND principale <> 1 ]

MODPATH/database/classes/Kohana/Database/MySQLi.php [ 171 ]

166 			{
167 				// This benchmark is worthless
168 				Profiler::delete($benchmark);
169 			}
170 
171 			throw new Database_Exception(':error [ :query ]', array(
172 				':error' => $this->_connection->error,
173 				':query' => $sql
174 			), $this->_connection->errno);
175 		}
176 
  1. MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_MySQLi->query(arguments)

  2. APPPATH/classes/Model/Immobili.php [ 278 ] » Kohana_Database_Query->execute()

  3. APPPATH/views/scheda_immobile.php [ 123 ] » Model_Immobili->get_immagini(arguments)

  4. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  5. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)

  6. SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()

  7. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString()

  8. APPPATH/classes/Controller/Home.php [ 154 ] » Kohana_Response->body(arguments)

  9. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Home->action_scheda_immobile()

  10. {PHP internal call} » Kohana_Controller->execute()

  11. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  12. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  13. SYSPATH/classes/Kohana/Request.php [ 993 ] » Kohana_Request_Client->execute(arguments)

  14. DOCROOT/index.php [ 118 ] » Kohana_Request->execute()

Environment