Whoops, looks like something went wrong.

2/2 QueryException in Connection.php line 666: 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 'and w.id_kategoria != ? o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.new' at line 1 (SQL: SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC)

  1. in Connection.php line 666
  2. at Connection->runQueryCallback('SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC', array('id_kategoria' => '1601040', 'id_food' => '0'), object(Closure)) in Connection.php line 622
  3. at Connection->run('SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC', array('id_kategoria' => '1601040', 'id_food' => '0'), object(Closure)) in Connection.php line 324
  4. at Connection->select('SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC', array('id_kategoria' => '1601040', 'id_food' => '0'))
  5. at call_user_func_array(array(object(MySqlConnection), 'select'), array('SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC', array('id_kategoria' => '1601040', 'id_food' => '0'))) in DatabaseManager.php line 296
  6. at DatabaseManager->__call('select', array('SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC', array('id_kategoria' => '1601040', 'id_food' => '0'))) in Facade.php line 217
  7. at Facade::__callStatic('select', array('SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC', array('id_kategoria' => '1601040', 'id_food' => '0'))) in ObjectRepository.php line 555
  8. at ObjectRepository->getLastXfromAllCategories('0') in ObjectService.php line 169
  9. at ObjectService->getLastXfromAllCategories('0') in StaticPageController.php line 306
  10. at StaticPageController->newestOffers(object(ObjectService), object(PhotoService))
  11. at call_user_func_array(array(object(StaticPageController), 'newestOffers'), array(object(ObjectService), object(PhotoService))) in Controller.php line 256
  12. at Controller->callAction('newestOffers', array(object(ObjectService), object(PhotoService))) in ControllerDispatcher.php line 164
  13. at ControllerDispatcher->call(object(StaticPageController), object(Route), 'newestOffers') in ControllerDispatcher.php line 112
  14. at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  16. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  17. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  18. at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
  19. at ControllerDispatcher->callWithinStack(object(StaticPageController), object(Route), object(Request), 'newestOffers') in ControllerDispatcher.php line 68
  20. at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\StaticPageController', 'newestOffers') in Route.php line 203
  21. at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
  22. at Route->run(object(Request)) in Router.php line 708
  23. at Router->Illuminate\Routing\{closure}(object(Request))
  24. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  25. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  26. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  27. at Pipeline->then(object(Closure)) in Router.php line 710
  28. at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 674
  29. at Router->dispatchToRoute(object(Request)) in Router.php line 635
  30. at Router->dispatch(object(Request)) in Kernel.php line 236
  31. at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
  32. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  33. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in BotCheck.php line 119
  34. at BotCheck->handle(object(Request), object(Closure))
  35. at call_user_func_array(array(object(BotCheck), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  36. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in SetLang.php line 61
  37. at SetLang->handle(object(Request), object(Closure))
  38. at call_user_func_array(array(object(SetLang), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  39. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
  40. at ShareErrorsFromSession->handle(object(Request), object(Closure))
  41. at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  42. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
  43. at StartSession->handle(object(Request), object(Closure))
  44. at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  45. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
  46. at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
  47. at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  48. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
  49. at EncryptCookies->handle(object(Request), object(Closure))
  50. at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  51. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
  52. at CheckForMaintenanceMode->handle(object(Request), object(Closure))
  53. at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  54. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  55. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  56. at Pipeline->then(object(Closure)) in Kernel.php line 122
  57. at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
  58. at Kernel->handle(object(Request)) in index.php line 127

1/2 PDOException in Connection.php line 319: 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 'and w.id_kategoria != ? o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.new' at line 1

  1. in Connection.php line 319
  2. at PDO->prepare('SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC') in Connection.php line 319
  3. at Connection->Illuminate\Database\{closure}(object(MySqlConnection), 'SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC', array('id_kategoria' => '1601040', 'id_food' => '0')) in Connection.php line 659
  4. at Connection->runQueryCallback('SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC', array('id_kategoria' => '1601040', 'id_food' => '0'), object(Closure)) in Connection.php line 622
  5. at Connection->run('SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC', array('id_kategoria' => '1601040', 'id_food' => '0'), object(Closure)) in Connection.php line 324
  6. at Connection->select('SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC', array('id_kategoria' => '1601040', 'id_food' => '0'))
  7. at call_user_func_array(array(object(MySqlConnection), 'select'), array('SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC', array('id_kategoria' => '1601040', 'id_food' => '0'))) in DatabaseManager.php line 296
  8. at DatabaseManager->__call('select', array('SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC', array('id_kategoria' => '1601040', 'id_food' => '0'))) in Facade.php line 217
  9. at Facade::__callStatic('select', array('SELECT o.news,o.news_en,o.nazwa,o.nazwa_en,o.news_date,o.id,o.zajawka_en, o.freshweek_card_active,o.freshday_card_active, w.id_kategoria, o.telefon, o.tel_2, o.tel_3, o.hide_phone, o.ulica FROM wyswietlacz AS w, obiekt AS o where w.id_kategoria = :id_kategoria and and w.id_kategoria != :id_food o.aktywne = 1 and o.id = w.id_prezentacja ORDER BY o.news_date DESC', array('id_kategoria' => '1601040', 'id_food' => '0'))) in ObjectRepository.php line 555
  10. at ObjectRepository->getLastXfromAllCategories('0') in ObjectService.php line 169
  11. at ObjectService->getLastXfromAllCategories('0') in StaticPageController.php line 306
  12. at StaticPageController->newestOffers(object(ObjectService), object(PhotoService))
  13. at call_user_func_array(array(object(StaticPageController), 'newestOffers'), array(object(ObjectService), object(PhotoService))) in Controller.php line 256
  14. at Controller->callAction('newestOffers', array(object(ObjectService), object(PhotoService))) in ControllerDispatcher.php line 164
  15. at ControllerDispatcher->call(object(StaticPageController), object(Route), 'newestOffers') in ControllerDispatcher.php line 112
  16. at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
  17. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  18. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  19. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  20. at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
  21. at ControllerDispatcher->callWithinStack(object(StaticPageController), object(Route), object(Request), 'newestOffers') in ControllerDispatcher.php line 68
  22. at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\StaticPageController', 'newestOffers') in Route.php line 203
  23. at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
  24. at Route->run(object(Request)) in Router.php line 708
  25. at Router->Illuminate\Routing\{closure}(object(Request))
  26. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  27. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  28. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  29. at Pipeline->then(object(Closure)) in Router.php line 710
  30. at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 674
  31. at Router->dispatchToRoute(object(Request)) in Router.php line 635
  32. at Router->dispatch(object(Request)) in Kernel.php line 236
  33. at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
  34. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  35. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in BotCheck.php line 119
  36. at BotCheck->handle(object(Request), object(Closure))
  37. at call_user_func_array(array(object(BotCheck), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  38. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in SetLang.php line 61
  39. at SetLang->handle(object(Request), object(Closure))
  40. at call_user_func_array(array(object(SetLang), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  41. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
  42. at ShareErrorsFromSession->handle(object(Request), object(Closure))
  43. at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  44. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
  45. at StartSession->handle(object(Request), object(Closure))
  46. at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  47. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
  48. at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
  49. at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  50. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
  51. at EncryptCookies->handle(object(Request), object(Closure))
  52. at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  53. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
  54. at CheckForMaintenanceMode->handle(object(Request), object(Closure))
  55. at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  56. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  57. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  58. at Pipeline->then(object(Closure)) in Kernel.php line 122
  59. at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
  60. at Kernel->handle(object(Request)) in index.php line 127