Throwable_SQL_Exception [ 404 ]: Message: Failed to query SQL statement. Reason: ERROR: syntax error at end of input LINE 1: ...ON s.id = tas.id_sections AND s.id != 6 AND tas.id_articles= ^

MODPATH/orm-leap/classes/Base/DB/PostgreSQL/DataReader/Standard.php [ 48 ]

43 	 */
44 	public function __construct(DB_Connection_Driver $connection, $sql, $mode = NULL) {
45 		$resource = $connection->get_resource();
46 		$command = @pg_query($resource, $sql);
47 		if ($command === FALSE) {
48 			throw new Throwable_SQL_Exception('Message: Failed to query SQL statement. Reason: :reason', array(':reason' => @pg_last_error($resource)));
49 		}
50 		$this->command = $command;
51 		$this->record = FALSE;
52 	}
53 
  1. MODPATH/orm-leap/classes/Base/DB/SQL/DataReader.php [ 141 ] » Base_DB_PostgreSQL_DataReader_Standard->__construct(arguments)

  2. MODPATH/orm-leap/classes/Base/DB/Connection/Driver.php [ 247 ] » Base_DB_SQL_DataReader::factory(arguments)

  3. APPPATH/classes/Block/Schema.php [ 111 ] » Base_DB_Connection_Driver->query(arguments)

  4. APPPATH/views/Lenta5/article.php [ 93 ] » Block_Schema::BreadcrumbList(arguments)

  5. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

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

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

  8. APPPATH/views/lenta5.php [ 256 ] » Kohana_View->__toString()

  9. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

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

  11. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  12. APPPATH/classes/Controller/Lenta5.php [ 633 ] » Kohana_Controller_Template->after()

  13. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Controller_Lenta5->after()

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

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

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

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

  18. DOCROOT/index.php [ 121 ] » Kohana_Request->execute()

Environment