MySQL server has gone away select sum(zs.stock) 'vendable', sum(e.qtite) 'commandes', max(e.livraison) 'livraison', max(e.delai) 'delai', sum(lc.qtite) 'vendu', jp.id_fourn, jp.entraxe, sf.stock 'stock_u', sf.stock2 'stock_u2', sf.dt_upd_stock, f.dt_last_import from autoexclusive.jantes_prod jp join autoexclusive.stock_fourn sf on jp.id_jante=sf.id_jante join autoexclusive.fournisseurs f on sf.id_fourn=f.id_fourn and prod='j' left join autoexclusive.zones_stock zs on jp.id_jante=zs.id_jante and zs.stock<>0 and zone not like 'donckers' left join autoexclusive.entrees e on jp.id_jante=e.id_jante and e.delai!='0000-00-00' left join autoexclusive.lignes_commande lc on jp.id_jante=lc.id_jante and lc.destock_from like 'CMDAE' and lc.id_destock_from=e.id_entree and lc.id_cmd not in (select id_cmd from autoexclusive.commandes where id_clt=35123) where jp.id_jante=1033456 group by jp.id_jante
Fatal error: Uncaught Error: Call to a member function fetch_object() on bool in /home/autoexclusive/www/autoexclusive/objets/modele.php:1189
Stack trace:
#0 /home/autoexclusive/www/autoexclusive/objets/modele.php(794): modele->lire_jante_stock()
#1 /home/autoexclusive/www/autoexclusive/jante_packs.php(1310): modele->get_intra_jantes()
#2 /home/autoexclusive/www/autoexclusive/index.php(669): include('/home/autoexclu...')
#3 {main}
thrown in /home/autoexclusive/www/autoexclusive/objets/modele.php on line 1189